summary refs log tree commit diff
path: root/pkgs/development/python-modules/suseapi/default.nix
blob: bcf35d1f5f706309d7d5f9ea9922087843e67a6c (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
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, suds-jurko
, ldap
, mechanize
, beautifulsoup4
, pyxdg
, python-dateutil
, requests
, httpretty
}:

buildPythonPackage rec {
  pname = "suseapi";
  version = "0.24-31-g0fcbe96";

  src = fetchFromGitHub {
    owner = "openSUSE";
    repo = "python-${pname}";
    rev = version;
    sha256 = "0hyzq0h1w8gp0zfvhqh7qsgcg1wp05a14371m6bn5a7gss93rbv4";
  };

  propagatedBuildInputs = [
    django suds-jurko ldap mechanize beautifulsoup4 pyxdg python-dateutil requests
  ];

  buildInputs = [ httpretty ];

  doCheck = false;

  meta = {
    homepage = "https://github.com/openSUSE/python-suseapi/";
    description = "Python module to work with various SUSE services";
    license = lib.licenses.gpl3Plus;
  };
}