nixpkgs/pkgs/development/python-modules/pyrsistent/default.nix
2019-11-12 14:57:20 +01:00

34 lines
711 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, six
, pytest_4
, hypothesis
, pytestrunner
}:
buildPythonPackage rec {
pname = "pyrsistent";
version = "0.15.5";
src = fetchPypi {
inherit pname version;
sha256 = "eb6545dbeb1aa69ab1fb4809bfbf5a8705e44d92ef8fc7c2361682a47c46c778";
};
propagatedBuildInputs = [ six ];
checkInputs = [ pytestrunner pytest_4 hypothesis ];
postPatch = ''
substituteInPlace setup.py --replace 'pytest<5' 'pytest'
'';
meta = with stdenv.lib; {
homepage = https://github.com/tobgu/pyrsistent/;
description = "Persistent/Functional/Immutable data structures";
license = licenses.mit;
maintainers = with maintainers; [ desiderius ];
};
}