Merge pull request #83573 from bhipple/f/effect

pythonPackages.effect: fix build by marking py3 only
This commit is contained in:
worldofpeace 2020-03-28 01:22:02 -04:00 committed by GitHub
commit 702b89f952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,33 +1,40 @@
{ buildPythonPackage
, fetchPypi
, lib
, isPy3k
, six
, attrs
, pytest
, testtools
}:
buildPythonPackage rec {
version = "1.1.0";
pname = "effect";
disabled = (!isPy3k);
src = fetchPypi {
inherit pname version;
sha256 = "7affb603707c648b07b11781ebb793a4b9aee8acf1ac5764c3ed2112adf0c9ea";
};
checkInputs = [
pytest
testtools
];
propagatedBuildInputs = [
six
attrs
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Pure effects for Python";
homepage = https://github.com/python-effect/effect;
homepage = "https://github.com/python-effect/effect";
license = licenses.mit;
};
}