blob: baffe42e0f3611b3808230b53d838511e2db1d07 (
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
53
54
55
56
57
58
59
60
61
|
{ lib
, buildPythonPackage
, cython_3
, fetchPypi
, future
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, hatchling
, hatch-vcs
, toolz
}:
buildPythonPackage rec {
pname = "in-n-out";
version = "0.1.8";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "in_n_out";
inherit version;
hash = "sha256-gWKvh4fmgutLNtBH+RQZnYDxEk46QUIM1T3mgOfQolQ=";
};
nativeBuildInputs = [
cython_3
hatchling
hatch-vcs
];
propagatedBuildInputs = [
future
];
nativeCheckInputs = [
pytestCheckHook
toolz
];
pythonImportsCheck = [
"in_n_out"
];
disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [
# Fatal Python error
"tests/test_injection.py"
"tests/test_processors.py"
"tests/test_providers.py"
"tests/test_store.py"
];
meta = with lib; {
description = "Module for dependency injection and result processing";
homepage = "https://github.com/pyapp-kit/in-n-out";
changelog = "https://github.com/pyapp-kit/in-n-out/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
|