Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, cython, fetchFromGitHub, libstatgrab, pkg-config, pythonOlder, setuptools, unittestCheckHook, wheel}:
buildPythonPackage rec { pname = "pystatgrab"; version = "0.7.2"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "libstatgrab"; repo = "pystatgrab"; rev = "PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}"; hash = "sha256-0FDhkIK8jy3/SFmCzrl9l4RTeIKDjO0o5UoODx6Wnfs="; };
nativeBuildInputs = [ cython pkg-config setuptools wheel ];
buildInputs = [ libstatgrab ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "statgrab" ];
meta = with lib; { description = "Python bindings for libstatgrab"; homepage = "https://github.com/libstatgrab/pystatgrab"; changelog = "https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}/NEWS"; license = licenses.lgpl21Only; maintainers = with maintainers; [ fab ]; };}