depot/third_party/nixpkgs/pkgs/development/python-modules/effect/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

40 lines
614 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";
};
nativeCheckInputs = [
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;
};
}