blob: 6829b8b83657b3d3abe2506fb6c25c5be956d607 (
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
53
54
55
56
57
58
59
60
61
|
{
# lib & utils
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
setuptools,
# deps
matplotlib,
numpy,
# tests
pytestCheckHook,
pandas,
}:
buildPythonPackage rec {
pname = "timple";
version = "0.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "theOehrly";
repo = "timple";
tag = "v${version}";
hash = "sha256-tfw+m1ZrU5A9KbXmMS4c1AIP4f/9YT3/o7HRb/uxUSM";
};
build-system = [ setuptools ];
dependencies = [
matplotlib
numpy
];
nativeCheckInputs = [
pytestCheckHook
pandas
];
pythonImportsCheck = [ "timple" ];
disabledTests = [
# wants write access to nix store
"test_mpl_default_functionality"
];
disabledTestPaths = [
# gui plotting tests
"timple/tests/test_timple.py"
];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/theOehrly/timple/releases/tag/v${version}";
description = "Extended functionality for plotting timedelta-like values with Matplotlib";
homepage = "https://github.com/theOehrly/timple";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vaisriv ];
};
}
|