From 4154e64406ba4de858f29c04f830fe4cfd25356b Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 28 May 2021 23:32:44 -0400 Subject: [PATCH 1/2] python3Packages.boost-histogram: init at 1.0.2 --- .../boost-histogram/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 +++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/boost-histogram/default.nix diff --git a/pkgs/development/python-modules/boost-histogram/default.nix b/pkgs/development/python-modules/boost-histogram/default.nix new file mode 100644 index 000000000000..f644c8c9c20f --- /dev/null +++ b/pkgs/development/python-modules/boost-histogram/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchPypi, buildPythonPackage, isPy3k, boost, numpy, pytestCheckHook, pytest-benchmark }: + +buildPythonPackage rec { + pname = "boost-histogram"; + version = "1.0.2"; + disabled = !isPy3k; + + src = fetchPypi { + pname = "boost_histogram"; + inherit version; + sha256 = "b79cb9a00c5b8e44ff24ffcbec0ce5d3048dd1570c8592066344b6d2f2369fa2"; + }; + + buildInputs = [ boost ]; + propagatedBuildInputs = [ numpy ]; + + checkInputs = [ pytestCheckHook pytest-benchmark ]; + + meta = with lib; { + description = "Python bindings for the C++14 Boost::Histogram library"; + homepage = "https://github.com/scikit-hep/boost-histogram"; + license = licenses.bsd3; + platforms = platforms.unix; + maintainers = with maintainers; [ veprbl ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 20e9481450be..d31df906d6ec 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1126,6 +1126,10 @@ in { boschshcpy = callPackage ../development/python-modules/boschshcpy { }; + boost-histogram = callPackage ../development/python-modules/boost-histogram { + inherit (pkgs) boost; + }; + boto3 = callPackage ../development/python-modules/boto3 { }; boto = callPackage ../development/python-modules/boto { }; From 52af3c245a219b055edc9009e4e640f2a5bf5777 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sat, 29 May 2021 01:48:14 -0400 Subject: [PATCH 2/2] python3Packages.pyarrow: remove some redundant lib. --- pkgs/development/python-modules/pyarrow/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index 3a375b8d284b..989433b499d3 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -57,8 +57,8 @@ buildPythonPackage rec { meta = with lib; { description = "A cross-language development platform for in-memory data"; homepage = "https://arrow.apache.org/"; - license = lib.licenses.asl20; + license = licenses.asl20; platforms = platforms.unix; - maintainers = with lib.maintainers; [ veprbl ]; + maintainers = with maintainers; [ veprbl ]; }; }