2018-04-20 11:25:58 +02:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
2020-03-28 04:10:36 +01:00
|
|
|
, isPy3k
|
2018-04-20 11:25:58 +02:00
|
|
|
, six
|
2018-04-20 11:32:29 +02:00
|
|
|
, attrs
|
|
|
|
, pytest
|
|
|
|
, testtools
|
2018-04-20 11:25:58 +02:00
|
|
|
}:
|
2020-03-28 04:10:36 +01:00
|
|
|
|
2018-04-20 11:32:29 +02:00
|
|
|
buildPythonPackage rec {
|
2019-12-19 20:31:10 +01:00
|
|
|
version = "1.1.0";
|
2018-04-20 11:32:29 +02:00
|
|
|
pname = "effect";
|
2020-03-28 04:10:36 +01:00
|
|
|
disabled = (!isPy3k);
|
2018-04-20 11:25:58 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:10 +01:00
|
|
|
sha256 = "7affb603707c648b07b11781ebb793a4b9aee8acf1ac5764c3ed2112adf0c9ea";
|
2018-04-20 11:25:58 +02:00
|
|
|
};
|
2020-03-28 04:10:36 +01:00
|
|
|
|
2018-04-20 11:32:29 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
testtools
|
|
|
|
];
|
2020-03-28 04:10:36 +01:00
|
|
|
|
2018-04-20 11:25:58 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
attrs
|
|
|
|
];
|
2020-03-28 04:10:36 +01:00
|
|
|
|
2018-04-20 11:32:29 +02:00
|
|
|
checkPhase = ''
|
2018-12-02 13:15:51 +01:00
|
|
|
pytest
|
2018-04-20 11:32:29 +02:00
|
|
|
'';
|
2020-03-28 04:10:36 +01:00
|
|
|
|
2018-04-20 11:25:58 +02:00
|
|
|
meta = with lib; {
|
2018-04-20 11:32:29 +02:00
|
|
|
description = "Pure effects for Python";
|
2020-03-28 04:10:36 +01:00
|
|
|
homepage = "https://github.com/python-effect/effect";
|
2018-04-20 11:25:58 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|