diff --git a/pkgs/development/python-modules/allantools/default.nix b/pkgs/development/python-modules/allantools/default.nix new file mode 100644 index 000000000000..ea30c65cad47 --- /dev/null +++ b/pkgs/development/python-modules/allantools/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + matplotlib, + numpy, + numpydoc, + pytest, + scipy, + pythonOlder, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "allantools"; + version = "2024.06"; + pyproject = true; + + src = fetchFromGitHub { + owner = "aewallin"; + repo = "allantools"; + tag = version; + hash = "sha256-dF19aSpIioOm0BnwrLkMe/DtfgWSKFnX4c/Xs1O2Quw="; + }; + + build-system = [ + hatchling + ]; + + dependencies = [ + matplotlib + numpy + numpydoc + pytest + scipy + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "allantools" + ]; + + meta = { + description = "Allan deviation and related time & frequency statistics library in Python"; + homepage = "https://github.com/aewallin/allantools"; + license = lib.licenses.lgpl3Plus; + maintainers = with lib.maintainers; [ kiranshila ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3aa1ac9f8bfd..0215d25e1909 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -609,6 +609,8 @@ self: super: with self; { aliyun-python-sdk-sts = callPackage ../development/python-modules/aliyun-python-sdk-sts { }; + allantools = callPackage ../development/python-modules/allantools { }; + allpairspy = callPackage ../development/python-modules/allpairspy { }; allure-behave = callPackage ../development/python-modules/allure-behave { };