tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.cachier: init at 2.2.1
Peder Bergebakken Sundt
2 years ago
0996a248
d13e9427
+89
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
cachier
default.nix
top-level
python-packages.nix
+87
pkgs/development/python-modules/cachier/default.nix
reviewed
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, pythonOlder
4
4
+
, fetchPypi
5
5
+
, pythonRelaxDepsHook
6
6
+
, setuptools
7
7
+
, watchdog
8
8
+
, portalocker
9
9
+
, pathtools
10
10
+
, pytestCheckHook
11
11
+
, pymongo
12
12
+
, dnspython
13
13
+
, pymongo-inmemory
14
14
+
, pandas
15
15
+
}:
16
16
+
17
17
+
buildPythonPackage rec {
18
18
+
pname = "cachier";
19
19
+
version = "2.2.1";
20
20
+
format = "setuptools";
21
21
+
22
22
+
disabled = pythonOlder "3.8";
23
23
+
24
24
+
src = fetchPypi {
25
25
+
inherit pname version;
26
26
+
hash = "sha256-nm98LT87Z7yErKvIqMp93OEX9TDojqqtItgryHgSQJQ=";
27
27
+
};
28
28
+
29
29
+
pythonRemoveDeps = [ "setuptools" ];
30
30
+
31
31
+
nativeBuildInputs = [
32
32
+
pythonRelaxDepsHook
33
33
+
setuptools
34
34
+
];
35
35
+
36
36
+
propagatedBuildInputs = [
37
37
+
watchdog
38
38
+
portalocker
39
39
+
pathtools
40
40
+
];
41
41
+
42
42
+
preCheck = ''
43
43
+
substituteInPlace pytest.ini \
44
44
+
--replace \
45
45
+
"--cov" \
46
46
+
"#--cov"
47
47
+
'';
48
48
+
49
49
+
nativeCheckInputs = [
50
50
+
pytestCheckHook
51
51
+
pymongo
52
52
+
dnspython
53
53
+
pymongo-inmemory
54
54
+
pandas
55
55
+
];
56
56
+
57
57
+
disabledTests = [
58
58
+
# touches network
59
59
+
"test_mongetter_default_param"
60
60
+
"test_stale_after_applies_dynamically"
61
61
+
"test_next_time_applies_dynamically"
62
62
+
"test_wait_for_calc_"
63
63
+
"test_precache_value"
64
64
+
"test_ignore_self_in_methods"
65
65
+
"test_mongo_index_creation"
66
66
+
"test_mongo_core"
67
67
+
68
68
+
# don't test formatting
69
69
+
"test_flake8"
70
70
+
];
71
71
+
72
72
+
preBuild = ''
73
73
+
export HOME="$(mktemp -d)"
74
74
+
'';
75
75
+
76
76
+
pythonImportsCheck = [
77
77
+
"cachier"
78
78
+
"cachier.scripts"
79
79
+
];
80
80
+
81
81
+
meta = {
82
82
+
homepage = "https://github.com/python-cachier/cachier";
83
83
+
description = "Persistent, stale-free, local and cross-machine caching for functions";
84
84
+
maintainers = with lib.maintainers; [ pbsds ];
85
85
+
license = lib.licenses.mit;
86
86
+
};
87
87
+
}
+2
pkgs/top-level/python-packages.nix
reviewed
···
1691
1691
1692
1692
cacheyou = callPackage ../development/python-modules/cacheyou { };
1693
1693
1694
1694
+
cachier = callPackage ../development/python-modules/cachier { };
1695
1695
+
1694
1696
cachy = callPackage ../development/python-modules/cachy { };
1695
1697
1696
1698
cadquery = callPackage ../development/python-modules/cadquery {