nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 sabnzbd,
7}:
8
9buildPythonPackage rec {
10 pname = "sabctools";
11 version = "9.3.1";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-oZMYxukDhEbE0ybCbGcD40PNy4ktBei4bk0rccb3B4k=";
17 };
18
19 build-system = [ setuptools ];
20
21 pythonImportsCheck = [ "sabctools" ];
22
23 passthru.tests = {
24 inherit sabnzbd;
25 };
26
27 meta = {
28 description = "C implementations of functions for use within SABnzbd";
29 homepage = "https://github.com/sabnzbd/sabctools";
30 changelog = "https://github.com/sabnzbd/sabctools/releases/tag/v${version}";
31 license = lib.licenses.gpl2Only;
32 maintainers = with lib.maintainers; [ adamcstephens ];
33 };
34}