1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 sabnzbd, 7}: 8buildPythonPackage rec { 9 pname = "sabctools"; 10 version = "8.1.0"; # needs to match version sabnzbd expects, e.g. https://github.com/sabnzbd/sabnzbd/blob/4.0.x/requirements.txt#L3 11 pyproject = true; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-PYfbmR9wT3SHT+oFyQF2F13g7FgdvY/l9p0D65c/+RU="; 16 }; 17 18 nativeBuildInputs = [ setuptools ]; 19 20 pythonImportsCheck = [ "sabctools" ]; 21 22 passthru.tests = { 23 inherit sabnzbd; 24 }; 25 26 meta = with lib; { 27 description = "C implementations of functions for use within SABnzbd"; 28 homepage = "https://github.com/sabnzbd/sabctools"; 29 license = licenses.gpl2Only; 30 maintainers = with maintainers; [ adamcstephens ]; 31 }; 32}