diff options
Diffstat (limited to 'pkgs/development/python-modules/mplhep/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mplhep/default.nix | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/mplhep/default.nix b/pkgs/development/python-modules/mplhep/default.nix index 1daa1bc2170fa..36480a05393e5 100644 --- a/pkgs/development/python-modules/mplhep/default.nix +++ b/pkgs/development/python-modules/mplhep/default.nix @@ -1,48 +1,54 @@ { lib, buildPythonPackage, - fetchPypi, - hist, + fetchFromGitHub, + setuptools, + setuptools-scm, matplotlib, mplhep-data, + numpy, + packaging, + uhi, pytestCheckHook, - pytest-mock, - pytest-mpl, scipy, - setuptools, - setuptools-scm, - uhi, + pytest-mpl, + pytest-mock, uproot, + hist, }: buildPythonPackage rec { pname = "mplhep"; - version = "0.3.49"; - format = "pyproject"; + version = "0.3.52"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-Hxqk0eSEOWSpomrS/vTdJV9/1mKQ/yCJQOBpm9tAvqo="; + src = fetchFromGitHub { + owner = "scikit-hep"; + repo = "mplhep"; + rev = "refs/tags/v${version}"; + hash = "sha256-fcc/DG4irTvAOjCGAW7hW96z0yJNSvcpanfDGN9H9XI="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm ]; - propagatedBuildInputs = [ + dependencies = [ matplotlib - uhi mplhep-data + numpy + packaging + uhi ]; nativeCheckInputs = [ - hist pytestCheckHook - pytest-mock - pytest-mpl scipy + pytest-mpl + pytest-mock uproot + hist ]; disabledTests = [ @@ -53,10 +59,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "mplhep" ]; - meta = with lib; { + meta = { description = "Extended histogram plots on top of matplotlib and HEP compatible styling similar to current collaboration requirements (ROOT)"; homepage = "https://github.com/scikit-hep/mplhep"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ veprbl ]; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ veprbl ]; }; } |