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