nixpkgs/pkgs/development/python-modules/pyjet/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

35 lines
876 B
Nix

{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, cython, pytest, importlib-resources, numpy }:
buildPythonPackage rec {
pname = "pyjet";
version = "1.9.0";
format = "setuptools";
# tests not included in pypi tarball
src = fetchFromGitHub {
owner = "scikit-hep";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-0g0fCf0FIwde5Vsc/BJxjgMcs5llpD8JqOgFbMjOooc=";
};
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [
numpy
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
nativeCheckInputs = [ pytest ];
checkPhase = ''
mv pyjet _pyjet
pytest tests/
'';
meta = with lib; {
homepage = "https://github.com/scikit-hep/pyjet";
description = "The interface between FastJet and NumPy";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ veprbl ];
};
}