Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
876 B · 35 lines
Nix
123456789101112131415161718192021222324252627282930313233343536{ 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 ]; };}