git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pystache: move to a seperate file
commit1d1748c3c0b8b3c972451ec7aafbc5ea97e8a2ef authornagato.pain <iuns@outlook.fr> dateSat 13 Oct 2018, 10:35 (8 years ago) parent206f9ce
2 files changed+31−28
pkgs/development/python-modules/pystache/default.nix+29 pkgs/top-level/python-packages.nix+2−28
pkgs/development/python-modules/pystache/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, buildPythonPackage, python, fetchPypi, isPy3k, glibcLocales }:
2+
3+buildPythonPackage rec {
4+ pname = "pystache-${version}";
5+ version = "0.5.4";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a";
10+ };
11+
12+ LC_ALL = "en_US.UTF-8";
13+
14+ buildInputs = [ glibcLocales ];
15+
16+ checkPhase = ''
17+ ${python.interpreter} -m unittest discover
18+ '';
19+
20+ # SyntaxError Python 3
21+ # https://github.com/defunkt/pystache/issues/181
22+ doCheck = !isPy3k;
23+
24+ meta = with stdenv.lib; {
25+ description = "A framework-agnostic, logic-free templating system inspired by ctemplate and et";
26+ homepage = https://github.com/defunkt/pystache;
27+ license = licenses.mit;
28+ };
29+}
pkgs/top-level/python-packages.nix+2−28
@@ -559,6 +559,8 @@ in {
559559 slurm = pkgs.slurm;
560560 };
561561
562+ pystache = callPackage ../development/python-modules/pystache { };
563+
562564 pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
563565
564566 python-binance = callPackage ../development/python-modules/python-binance { };
@@ -10333,34 +10335,6 @@ in {
1033310335 };
1033410336 };
1033510337
10336− pystache = buildPythonPackage rec {
10337− name = "pystache-${version}";
10338− version = "0.5.4";
10339−
10340− src = pkgs.fetchurl {
10341− url = "mirror://pypi/p/pystache/${name}.tar.gz";
10342− sha256 = "f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a";
10343− };
10344−
10345− LC_ALL = "en_US.UTF-8";
10346−
10347− buildInputs = [ pkgs.glibcLocales ];
10348−
10349− checkPhase = ''
10350− ${python.interpreter} -m unittest discover
10351− '';
10352−
10353− # SyntaxError Python 3
10354− # https://github.com/defunkt/pystache/issues/181
10355− doCheck = !isPy3k;
10356−
10357− meta = {
10358− description = "A framework-agnostic, logic-free templating system inspired by ctemplate and et";
10359− homepage = https://github.com/defunkt/pystache;
10360− license = licenses.mit;
10361− };
10362− };
10363−
1036410338 PyStemmer = callPackage ../development/python-modules/pystemmer {};
1036510339
1036610340 Pyro = callPackage ../development/python-modules/pyro { };