forked from mirrors/nixpkgs
37 lines
668 B
Nix
37 lines
668 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, isPy37
|
|
, lib
|
|
, six
|
|
, attrs
|
|
, pytest
|
|
, testtools
|
|
}:
|
|
buildPythonPackage rec {
|
|
version = "0.11.0";
|
|
pname = "effect";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6";
|
|
};
|
|
checkInputs = [
|
|
pytest
|
|
testtools
|
|
];
|
|
propagatedBuildInputs = [
|
|
six
|
|
attrs
|
|
];
|
|
checkPhase = ''
|
|
pytest .
|
|
'';
|
|
# Tests fails on python3.7 https://github.com/python-effect/effect/issues/78
|
|
doCheck = !isPy37;
|
|
meta = with lib; {
|
|
description = "Pure effects for Python";
|
|
homepage = https://github.com/python-effect/effect;
|
|
license = licenses.mit;
|
|
};
|
|
}
|