1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

python.pkgs.cytoolz: move expression

This commit is contained in:
Frederik Rietdijk 2017-10-29 12:43:45 +01:00
parent 59d1dc6c58
commit b4b62e6e65
2 changed files with 38 additions and 27 deletions

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, nose
, toolz
, python
}:
buildPythonPackage rec {
pname = "cytoolz";
version = "0.8.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "476a2ad176de5eaef80499b7b43d4f72ba6d23df33d349088dae315e9b31c552";
};
# Extension types
disabled = isPyPy;
checkInputs = [ nose ];
propagatedBuildInputs = [ toolz ];
# Disable failing test https://github.com/pytoolz/cytoolz/issues/97
checkPhase = ''
NOSE_EXCLUDE=test_curried_exceptions nosetests -v $out/${python.sitePackages}
'';
meta = {
homepage = "http://github.com/pytoolz/cytoolz/";
description = "Cython implementation of Toolz: High performance functional utilities";
license = "licenses.bsd3";
maintainers = with lib.maintainers; [ fridh ];
};
}

View file

@ -3243,33 +3243,7 @@ in {
cython = callPackage ../development/python-modules/Cython { };
cytoolz = buildPythonPackage rec {
name = "cytoolz-${version}";
version = "0.8.2";
src = pkgs.fetchurl{
url = "mirror://pypi/c/cytoolz/cytoolz-${version}.tar.gz";
sha256 = "476a2ad176de5eaef80499b7b43d4f72ba6d23df33d349088dae315e9b31c552";
};
# Extension types
disabled = isPyPy;
buildInputs = with self; [ nose ];
propagatedBuildInputs = with self; [ toolz ];
# Disable failing test https://github.com/pytoolz/cytoolz/issues/97
checkPhase = ''
NOSE_EXCLUDE=test_curried_exceptions nosetests -v $out/${python.sitePackages}
'';
meta = {
homepage = "http://github.com/pytoolz/cytoolz/";
description = "Cython implementation of Toolz: High performance functional utilities";
license = "licenses.bsd3";
maintainers = with maintainers; [ fridh ];
};
};
cytoolz = callPackage ../development/python-modules/cytoolz { };
cryptacular = buildPythonPackage rec {
name = "cryptacular-1.4.1";