diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 6c321d3cf23a..80d272221f31 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -26983,6 +26983,12 @@ githubId = 1525767; name = "Vaibhav Sagar"; }; + vaisriv = { + email = "vai.sriv@icloud.com"; + github = "vaisriv"; + githubId = 46390109; + name = "Vai"; + }; valebes = { email = "valebes@gmail.com"; github = "valebes"; diff --git a/pkgs/development/python-modules/timple/default.nix b/pkgs/development/python-modules/timple/default.nix new file mode 100644 index 000000000000..027bdffbd548 --- /dev/null +++ b/pkgs/development/python-modules/timple/default.nix @@ -0,0 +1,64 @@ +{ + # lib & utils + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + nix-update-script, + setuptools, + + # deps + matplotlib, + numpy, + + # tests + pytestCheckHook, + pandas, +}: + +buildPythonPackage rec { + pname = "timple"; + version = "0.1.8"; + pyproject = true; + + disabled = pythonOlder "3.10"; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 17d4e0e52f13..b73b4fe1e4d8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18383,6 +18383,8 @@ self: super: with self; { timm = callPackage ../development/python-modules/timm { }; + timple = callPackage ../development/python-modules/timple { }; + timy = callPackage ../development/python-modules/timy { }; tiny-cuda-nn = toPythonModule (