blob: b9c49e30a560eacc9fe37f2d52875959289ca185 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, attrs
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, six
, testtools
}:
buildPythonPackage rec {
pname = "effect";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ev+2A3B8ZIsHsReB67eTpLmu6KzxrFdkw+0hEq3wyeo=";
};
postPatch = ''
substituteInPlace effect/test_do.py \
--replace "py.test" "pytest"
'';
propagatedBuildInputs = [
attrs
six
];
nativeCheckInputs = [
pytestCheckHook
];
checkInputs = [
testtools
];
pythonImportsCheck = [
"effect"
];
meta = with lib; {
description = "Pure effects for Python";
homepage = "https://effect.readthedocs.io/";
changelog = "https://github.com/python-effect/effect/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|