pythonPackages.effect: fix build by marking py3 only

Upstream only supports python >= 3.6:
https://github.com/python-effect/effect/#effect

CC @NixOS/nixos-release-managers

ZHF: #80379
This commit is contained in:
Benjamin Hipple 2020-03-27 23:10:36 -04:00
parent 716aa1abdb
commit 3b7b98ce1e

View File

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