nixpkgs/pkgs/development/python-modules/effect/default.nix

34 lines
557 B
Nix
Raw Normal View History

2018-04-20 10:25:58 +01:00
{ buildPythonPackage
, fetchPypi
, 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.12.0";
2018-04-20 10:32:29 +01:00
pname = "effect";
2018-04-20 10:25:58 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "0s8zsncq4l0ar2b4dijf8yzrk13x2swr1w2nb30s1p5jd6r24czl";
2018-04-20 10:25:58 +01:00
};
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-04-20 10:32:29 +01:00
'';
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;
};
}