Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 75 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatch-vcs, hatchling,
# dependencies matplotlib, mplhep-data, numpy, packaging, uhi,
# tests hist, pytest-mock, pytest-mpl, pytestCheckHook, scipy, uproot,}:
buildPythonPackage rec { pname = "mplhep"; version = "0.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "scikit-hep"; repo = "mplhep"; tag = "v${version}"; hash = "sha256-VpdhgFUX1qUiUT5HlA2j3QQv7s3bF671e1I53MsML8w="; };
build-system = [ hatch-vcs hatchling ];
dependencies = [ matplotlib mplhep-data numpy packaging uhi ];
nativeCheckInputs = [ hist pytest-mock pytest-mpl pytestCheckHook scipy uproot ];
disabledTests = [ # requires uproot4 "test_inputs_uproot" "test_uproot_versions" ];
pythonImportsCheck = [ "mplhep" ];
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"; changelog = "https://github.com/scikit-hep/mplhep/releases/tag/${src.tag}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ veprbl ]; };}