2018-04-20 10:25:58 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-11-25 11:32:24 +00:00
|
|
|
, isPy37
|
2018-04-20 10:25:58 +01:00
|
|
|
, lib
|
|
|
|
, six
|
2018-04-20 10:32:29 +01:00
|
|
|
, attrs
|
|
|
|
, pytest
|
|
|
|
, testtools
|
2018-04-20 10:25:58 +01:00
|
|
|
}:
|
2018-04-20 10:32:29 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.11.0";
|
|
|
|
pname = "effect";
|
2018-04-20 10:25:58 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6";
|
|
|
|
};
|
2018-04-20 10:32:29 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
testtools
|
|
|
|
];
|
2018-04-20 10:25:58 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
attrs
|
|
|
|
];
|
2018-04-20 10:32:29 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest .
|
|
|
|
'';
|
2018-11-25 11:32:24 +00:00
|
|
|
# Tests fails on python3.7 https://github.com/python-effect/effect/issues/78
|
|
|
|
doCheck = !isPy37;
|
2018-04-20 10:25:58 +01:00
|
|
|
meta = with lib; {
|
2018-04-20 10:32:29 +01:00
|
|
|
description = "Pure effects for Python";
|
2018-04-20 10:25:58 +01:00
|
|
|
homepage = https://github.com/python-effect/effect;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|