1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 sabnzbd, 7}: 8buildPythonPackage rec { 9 pname = "sabctools"; 10 version = "8.2.6"; 11 pyproject = true; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-olZSIjfP2E1tkCG8WzEZfrBJuDEp3PZyFFE5LJODEZE="; 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}