Skip to content

Commit

Permalink
pythonPackages.effect: fix build by marking py3 only
Browse files Browse the repository at this point in the history
Upstream only supports python >= 3.6:
https://github.com/python-effect/effect/#effect

CC @NixOS/nixos-release-managers

ZHF: NixOS#80379
(cherry picked from commit 3b7b98c)
  • Loading branch information
bhipple authored and stigok committed Jun 12, 2020
1 parent 466ec6c commit 2d527f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/python-modules/effect/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit 2d527f9

Please sign in to comment.