From 10eb694e1db8afde27b1dfa6b0f93fc960d9e9ce Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 15 Jan 2023 22:17:45 -0500 Subject: [PATCH] python310Packages.uhi: init at 0.3.3 (cherry picked from commit d4b39b856994ce05e657d5f7a3e48c83c0754f78) --- .../python-modules/uhi/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/uhi/default.nix diff --git a/pkgs/development/python-modules/uhi/default.nix b/pkgs/development/python-modules/uhi/default.nix new file mode 100644 index 0000000000000..948f2108d2610 --- /dev/null +++ b/pkgs/development/python-modules/uhi/default.nix @@ -0,0 +1,39 @@ +{ lib +, fetchPypi +, buildPythonPackage +, hatchling +, hatch-vcs +, numpy +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "uhi"; + version = "0.3.3"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "800caf3a5f1273b08bcc3bb4b49228fe003942e23423812b0110546aad9a24be"; + }; + + buildInputs = [ + hatchling + hatch-vcs + ]; + + propagatedBuildInputs = [ + numpy + ]; + + checkInputs = [ + pytestCheckHook + ]; + + meta = with lib; { + description = "Universal Histogram Interface"; + homepage = "https://uhi.readthedocs.io/"; + license = licenses.bsd3; + maintainers = with maintainers; [ veprbl ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e66ba66a5daf5..ffe0e856dab5a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11529,6 +11529,8 @@ self: super: with self; { inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices; }; + uhi = callPackage ../development/python-modules/uhi { }; + ujson = callPackage ../development/python-modules/ujson { }; ukkonen = callPackage ../development/python-modules/ukkonen { };