mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
9d9aa6099f
Some tests are broken on 0.15.2 if used with pytest 5+ as discussed in #64145. The issue is fixed in tobgu/pyrsistent#175 and released in 0.15.4.
35 lines
699 B
Nix
35 lines
699 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, six
|
|
, pytest_4
|
|
, hypothesis
|
|
, pytestrunner
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrsistent";
|
|
version = "0.15.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0cv5xvhfhlj88pb0ghdwivkfcmgi6503qjwxx4r6n06nd6hpzd1l";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|