-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
/
default.nix
58 lines (49 loc) · 1.2 KB
/
default.nix
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
{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, typish
, tzdata
}:
buildPythonPackage rec {
pname = "jsons";
version = "1.6.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ramonhagenaars";
repo = "jsons";
rev = "refs/tags/v${version}";
hash = "sha256-7OIByHvsqhKFOkb1q2kuxmbkkleryavYgp/T4U5hvGk=";
};
propagatedBuildInputs = [
typish
];
nativeCheckInputs = [
attrs
pytestCheckHook
tzdata
];
disabledTestPaths = [
# These tests are based on timings, which fail
# on slow or overloaded machines.
"tests/test_performance.py"
];
disabledTests = lib.optionals (pythonAtLeast "3.11") [
# https://github.com/ramonhagenaars/jsons/issues/187
"test_dump_load_parameterized_collections"
];
pythonImportsCheck = [
"jsons"
];
meta = with lib; {
description = "Turn Python objects into dicts or json strings and back";
homepage = "https://github.com/ramonhagenaars/jsons";
changelog = "https://github.com/ramonhagenaars/jsons/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fmoda3 ];
};
}