3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyrsistent/default.nix

35 lines
711 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, six
, pytest_4
, hypothesis
, pytestrunner
}:
buildPythonPackage rec {
pname = "pyrsistent";
2019-11-11 11:13:40 +00:00
version = "0.15.5";
src = fetchPypi {
inherit pname version;
2019-11-11 11:13:40 +00:00
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 ];
};
}