about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/sabctools/default.nix
blob: 9dad229707b535997ff5e39e02ca18aa9ac50fc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  lib,
  buildPythonPackage,
  fetchPypi,
  sabnzbd,
}:
buildPythonPackage rec {
  pname = "sabctools";
  version = "8.1.0"; # needs to match version sabnzbd expects, e.g. https://github.com/sabnzbd/sabnzbd/blob/4.0.x/requirements.txt#L3
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-PYfbmR9wT3SHT+oFyQF2F13g7FgdvY/l9p0D65c/+RU=";
  };

  pythonImportsCheck = ["sabctools"];

  passthru.tests = {inherit sabnzbd;};

  meta = with lib; {
    description = "C implementations of functions for use within SABnzbd";
    homepage = "https://github.com/sabnzbd/sabctools";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [adamcstephens];
  };
}