mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-19 20:23:19 +02:00
![Benjamin Hipple](/assets/img/avatar_default.png)
Upstream only supports python >= 3.6: https://github.com/python-effect/effect/#effect CC @NixOS/nixos-release-managers ZHF: #80379
41 lines
608 B
Nix
41 lines
608 B
Nix
{ 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";
|
|
license = licenses.mit;
|
|
};
|
|
}
|