1{
2 # lib & utils
3 lib,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 nix-update-script,
8 setuptools,
9
10 # deps
11 matplotlib,
12 numpy,
13
14 # tests
15 pytestCheckHook,
16 pandas,
17}:
18
19buildPythonPackage rec {
20 pname = "timple";
21 version = "0.1.8";
22 pyproject = true;
23
24 disabled = pythonOlder "3.10";
25
26 src = fetchFromGitHub {
27 owner = "theOehrly";
28 repo = "timple";
29 tag = "v${version}";
30 hash = "sha256-tfw+m1ZrU5A9KbXmMS4c1AIP4f/9YT3/o7HRb/uxUSM";
31 };
32
33 build-system = [ setuptools ];
34
35 dependencies = [
36 matplotlib
37 numpy
38 ];
39
40 nativeCheckInputs = [
41 pytestCheckHook
42 pandas
43 ];
44 pythonImportsCheck = [ "timple" ];
45
46 disabledTests = [
47 # wants write access to nix store
48 "test_mpl_default_functionality"
49 ];
50 disabledTestPaths = [
51 # gui plotting tests
52 "timple/tests/test_timple.py"
53 ];
54
55 passthru.updateScript = nix-update-script { };
56
57 meta = {
58 changelog = "https://github.com/theOehrly/timple/releases/tag/v${version}";
59 description = "Extended functionality for plotting timedelta-like values with Matplotlib";
60 homepage = "https://github.com/theOehrly/timple";
61 license = lib.licenses.mit;
62 maintainers = with lib.maintainers; [ vaisriv ];
63 };
64}