2018-10-26 15:57:03 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2019-09-26 16:15:46 +01:00
|
|
|
, pytest_4
|
2018-10-26 15:57:03 +01:00
|
|
|
, hypothesis
|
2019-01-08 05:02:12 +00:00
|
|
|
, pytestrunner
|
2018-10-26 15:57:03 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyrsistent";
|
2019-12-10 18:07:41 +00:00
|
|
|
version = "0.15.6";
|
2018-10-26 15:57:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-10 18:07:41 +00:00
|
|
|
sha256 = "f3b280d030afb652f79d67c5586157c5c1355c9a58dfc7940566e28d28f3df1b";
|
2018-10-26 15:57:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2019-09-26 16:15:46 +01:00
|
|
|
checkInputs = [ pytestrunner pytest_4 hypothesis ];
|
2019-01-08 05:02:12 +00:00
|
|
|
|
2019-09-24 16:41:35 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace 'pytest<5' 'pytest'
|
|
|
|
'';
|
|
|
|
|
2018-10-26 15:57:03 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/tobgu/pyrsistent/;
|
|
|
|
description = "Persistent/Functional/Immutable data structures";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|