summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyscss
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-26 11:30:51 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-27 09:07:22 +0200
commit2114c56b9062e13b19dbd53de1347a406948e81c (patch)
treeb5ccdd5747fe4db0da9c6145683e2e29c3995123 /pkgs/development/python-modules/pyscss
parent16553bb676e5109615949b1fdfcd10b2b7031a34 (diff)
downloadnixpkgs-2114c56b9062e13b19dbd53de1347a406948e81c.tar
nixpkgs-2114c56b9062e13b19dbd53de1347a406948e81c.tar.gz
nixpkgs-2114c56b9062e13b19dbd53de1347a406948e81c.tar.bz2
nixpkgs-2114c56b9062e13b19dbd53de1347a406948e81c.tar.lz
nixpkgs-2114c56b9062e13b19dbd53de1347a406948e81c.tar.xz
nixpkgs-2114c56b9062e13b19dbd53de1347a406948e81c.tar.zst
nixpkgs-2114c56b9062e13b19dbd53de1347a406948e81c.zip
pythonPackages.pyscss: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/pyscss')
-rw-r--r--pkgs/development/python-modules/pyscss/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyscss/default.nix b/pkgs/development/python-modules/pyscss/default.nix
new file mode 100644
index 00000000000..cf63d3660ef
--- /dev/null
+++ b/pkgs/development/python-modules/pyscss/default.nix
@@ -0,0 +1,39 @@
+{ stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, pytest
+, six
+, enum34
+, pathlib
+, ordereddict
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "pyScss";
+  version = "1.3.5";
+
+  src = fetchFromGitHub {
+    sha256 = "0lfsan74vcw6dypb196gmbprvlbran8p7w6czy8hyl2b1l728mhz";
+    rev = "v1.3.5";
+    repo = "pyScss";
+    owner = "Kronuz";
+  };
+
+  checkInputs = [ pytest ];
+
+  propagatedBuildInputs = [ six ]
+    ++ (stdenv.lib.optionals (pythonOlder "3.4") [ enum34 pathlib ])
+    ++ (stdenv.lib.optionals (pythonOlder "2.7") [ ordereddict ]);
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A Scss compiler for Python";
+    homepage = http://pyscss.readthedocs.org/en/latest/;
+    license = licenses.mit;
+  };
+
+}