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