diff options
author | ifurther <55025025+ifurther@users.noreply.github.com> | 2023-11-08 17:54:29 +0800 |
---|---|---|
committer | ifurther <55025025+ifurther@users.noreply.github.com> | 2023-11-17 22:25:06 +0800 |
commit | c7a324364e7d7ec6b5a3786651578e35dd7eace4 (patch) | |
tree | 5cb13cdc571f3745cfcd57b99a2f35db41171c14 /pkgs | |
parent | 925b48774a05357c367f3daf6495dd0f2d7f192b (diff) | |
download | nixpkgs-c7a324364e7d7ec6b5a3786651578e35dd7eace4.tar nixpkgs-c7a324364e7d7ec6b5a3786651578e35dd7eace4.tar.gz nixpkgs-c7a324364e7d7ec6b5a3786651578e35dd7eace4.tar.bz2 nixpkgs-c7a324364e7d7ec6b5a3786651578e35dd7eace4.tar.lz nixpkgs-c7a324364e7d7ec6b5a3786651578e35dd7eace4.tar.xz nixpkgs-c7a324364e7d7ec6b5a3786651578e35dd7eace4.tar.zst nixpkgs-c7a324364e7d7ec6b5a3786651578e35dd7eace4.zip |
python3Packages.fast-histogram: init at 0.12
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/fast-histogram/default.nix | 54 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fast-histogram/default.nix b/pkgs/development/python-modules/fast-histogram/default.nix new file mode 100644 index 00000000000..fd00ff5df8e --- /dev/null +++ b/pkgs/development/python-modules/fast-histogram/default.nix @@ -0,0 +1,54 @@ +{ lib +, buildPythonPackage +, pytestCheckHook +, fetchFromGitHub +, python +, pythonOlder +, setuptools +, setuptools-scm +, numpy +, wheel +, hypothesis +, pytest-cov +}: + +buildPythonPackage rec { + pname = "fast-histogram"; + version = "0.12"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "astrofrog"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-Cz4BgbtxbUPxL2NSzvZYjbYIN4KUuliUV0bXRRtyvfM="; + }; + + nativeBuildInputs = [ + setuptools + setuptools-scm + wheel + ]; + + propagatedBuildInputs = [ numpy ]; + + nativeCheckInputs = [ + pytestCheckHook + hypothesis + pytest-cov + ]; + + pytestFlagsArray = [ "${builtins.placeholder "out"}/${python.sitePackages}" ]; + + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + + pythonImportsCheck = [ "fast_histogram" ]; + + meta = with lib; { + homepage = "https://github.com/astrofrog/fast-histogram"; + description = "Fast 1D and 2D histogram functions in Python"; + license = licenses.bsd2; + maintainers = with maintainers; [ ifurther ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1879c741de0..e7e474eea0a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3795,6 +3795,8 @@ self: super: with self; { fastapi-mail = callPackage ../development/python-modules/fastapi-mail { }; + fast-histogram = callPackage ../development/python-modules/fast-histogram { }; + fastavro = callPackage ../development/python-modules/fastavro { }; fastbencode = callPackage ../development/python-modules/fastbencode { }; |