Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python.pkgs.numtraits: move expression

+34 -24
+33
pkgs/development/python-modules/numtraits/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytest 5 + , six 6 + , numpy 7 + , traitlets 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "numtraits"; 12 + version = "0.2"; 13 + name = "${pname}-${version}"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e"; 18 + }; 19 + 20 + checkInputs = [ pytest ]; 21 + propagatedBuildInputs = [ six numpy traitlets]; 22 + 23 + checkPhase = '' 24 + py.test 25 + ''; 26 + 27 + meta = { 28 + description = "Numerical traits for Python objects"; 29 + license = lib.licenses.bsd2; 30 + maintainers = with lib.maintainers; [ fridh ]; 31 + homepage = https://github.com/astrofrog/numtraits; 32 + }; 33 + }
+1 -24
pkgs/top-level/python-packages.nix
··· 13168 13169 numpy-stl = callPackage ../development/python-modules/numpy-stl { }; 13170 13171 - numtraits = buildPythonPackage rec { 13172 - pname = "numtraits"; 13173 - version = "0.2"; 13174 - name = "${pname}-${version}"; 13175 - 13176 - src = pkgs.fetchurl { 13177 - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; 13178 - sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e"; 13179 - }; 13180 - 13181 - buildInputs = with self; [ pytest ]; 13182 - propagatedBuildInputs = with self; [ six numpy traitlets]; 13183 - 13184 - checkPhase = '' 13185 - py.test 13186 - ''; 13187 - 13188 - meta = { 13189 - description = "Numerical traits for Python objects"; 13190 - license = licenses.bsd2; 13191 - maintainers = with maintainers; [ fridh ]; 13192 - homepage = https://github.com/astrofrog/numtraits; 13193 - }; 13194 - }; 13195 13196 nwdiag = buildPythonPackage rec { 13197 name = "nwdiag-1.0.3";
··· 13168 13169 numpy-stl = callPackage ../development/python-modules/numpy-stl { }; 13170 13171 + numtraits = callPackage ../development/python-modules/numtraits { }; 13172 13173 nwdiag = buildPythonPackage rec { 13174 name = "nwdiag-1.0.3";