python312Packages.boost-histogram: modernize derivation; use fetchFromGitHub
This commit is contained in:
@@ -1,18 +1,27 @@
|
||||
{
|
||||
lib,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
|
||||
# nativeBuildInputs
|
||||
cmake,
|
||||
|
||||
# build-system
|
||||
pybind11,
|
||||
nanobind,
|
||||
ninja,
|
||||
scikit-build-core,
|
||||
setuptools-scm,
|
||||
|
||||
# buildInputs
|
||||
boost,
|
||||
|
||||
# dependencies
|
||||
numpy,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
pytest-benchmark,
|
||||
scikit-build-core,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -20,12 +29,11 @@ buildPythonPackage rec {
|
||||
version = "1.5.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "boost_histogram";
|
||||
inherit version;
|
||||
hash = "sha256-BiPwEObFLl0Bh2dyOVloYJDbB/ww8NHYR1tdZjxd2yw=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "scikit-hep";
|
||||
repo = "boost-histogram";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-GsgzJqZTrtc4KRkGn468m0e+sgX9rzJdwA9JMPSSPWk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
@@ -49,10 +57,11 @@ buildPythonPackage rec {
|
||||
pytest-benchmark
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Python bindings for the C++14 Boost::Histogram library";
|
||||
homepage = "https://github.com/scikit-hep/boost-histogram";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
changelog = "https://github.com/scikit-hep/boost-histogram/releases/tag/v${version}";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user