about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cytoolz/default.nix
blob: 4e862d2609278bdba60a86cc57399119d47d8ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, nose
, toolz
, python
, fetchpatch
, isPy27
}:

buildPythonPackage rec {
  pname = "cytoolz";
  version = "0.11.0";
  disabled = isPy27 || isPyPy;

  src = fetchPypi {
    inherit pname version;
    sha256 = "c64f3590c3eb40e1548f0d3c6b2ccde70493d0b8dc6cc7f9f3fec0bb3dcd4222";
  };

  checkInputs = [ nose ];
  propagatedBuildInputs = [ toolz ];

  checkPhase = ''
    nosetests -v $out/${python.sitePackages}
  '';

  meta = {
    homepage = "https://github.com/pytoolz/cytoolz/";
    description = "Cython implementation of Toolz: High performance functional utilities";
    license = "licenses.bsd3";
    maintainers = with lib.maintainers; [ fridh ];
  };
}