about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pynzb/default.nix
blob: 52d94c093f67af008d32c311e71e9f2f26170e54 (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
28
29
30
31
{
  lib,
  buildPythonPackage,
  fetchPypi,
  python,
}:

buildPythonPackage rec {
  pname = "pynzb";
  version = "0.1.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0735b3889a1174bbb65418ee503629d3f5e4a63f04b16f46ffba18253ec3ef17";
  };

  checkPhase = ''
    ${python.interpreter} -m unittest -s pynzb -t .
  '';

  # Can't get them working
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/ericflo/pynzb";
    description = "Unified API for parsing NZB files";
    license = licenses.bsd3;
    maintainers = with maintainers; [ domenkozar ];
  };
}