pythonPackages.pyscss: refactor move to python-modules
This commit is contained in:
parent
16553bb676
commit
2114c56b90
39
pkgs/development/python-modules/pyscss/default.nix
Normal file
39
pkgs/development/python-modules/pyscss/default.nix
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3481,33 +3481,7 @@ in {
|
|||||||
|
|
||||||
pyreadability = callPackage ../development/python-modules/pyreadability { };
|
pyreadability = callPackage ../development/python-modules/pyreadability { };
|
||||||
|
|
||||||
pyscss = buildPythonPackage rec {
|
pyscss = callPackage ../development/python-modules/pyscss { };
|
||||||
name = "pyScss-${version}";
|
|
||||||
version = "1.3.5";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
sha256 = "0lfsan74vcw6dypb196gmbprvlbran8p7w6czy8hyl2b1l728mhz";
|
|
||||||
rev = "v1.3.5";
|
|
||||||
repo = "pyScss";
|
|
||||||
owner = "Kronuz";
|
|
||||||
};
|
|
||||||
|
|
||||||
checkInputs = with self; [ pytest ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ six ]
|
|
||||||
++ (optionals (pythonOlder "3.4") [ enum34 pathlib ])
|
|
||||||
++ (optionals (pythonOlder "2.7") [ ordereddict ]);
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A Scss compiler for Python";
|
|
||||||
homepage = http://pyscss.readthedocs.org/en/latest/;
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyserial = callPackage ../development/python-modules/pyserial {};
|
pyserial = callPackage ../development/python-modules/pyserial {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user