blob: d430aa563e948472cfb2da88746b1642d2aa5a9d (
plain)
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,
fetchFromGitHub,
pytestCheckHook,
pythonAtLeast,
typish,
tzdata,
}:
buildPythonPackage rec {
pname = "jsons";
version = "1.6.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "ramonhagenaars";
repo = "jsons";
tag = "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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fmoda3 ];
};
}
|