nixpkgs/pkgs/development/python-modules/effect/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
904 B
Nix
Raw Normal View History

{ lib
, attrs
, buildPythonPackage
2018-04-20 09:25:58 +00:00
, fetchPypi
, pytestCheckHook
, pythonOlder
2018-04-20 09:25:58 +00:00
, six
2018-04-20 09:32:29 +00:00
, testtools
2018-04-20 09:25:58 +00:00
}:
2018-04-20 09:32:29 +00:00
buildPythonPackage rec {
pname = "effect";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2018-04-20 09:25:58 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-ev+2A3B8ZIsHsReB67eTpLmu6KzxrFdkw+0hEq3wyeo=";
2018-04-20 09:25:58 +00:00
};
postPatch = ''
substituteInPlace effect/test_do.py \
--replace "py.test" "pytest"
'';
2018-04-20 09:25:58 +00:00
propagatedBuildInputs = [
attrs
six
2018-04-20 09:25:58 +00:00
];
nativeCheckInputs = [
pytestCheckHook
];
checkInputs = [
testtools
];
pythonImportsCheck = [
"effect"
];
2018-04-20 09:25:58 +00:00
meta = with lib; {
2018-04-20 09:32:29 +00:00
description = "Pure effects for Python";
homepage = "https://effect.readthedocs.io/";
changelog = "https://github.com/python-effect/effect/releases/tag/${version}";
2018-04-20 09:25:58 +00:00
license = licenses.mit;
maintainers = with maintainers; [ ];
2018-04-20 09:25:58 +00:00
};
}