1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, django
5, suds-jurko
6, python-ldap
7, mechanize
8, beautifulsoup4
9, pyxdg
10, python-dateutil
11, requests
12, httpretty
13}:
14
15buildPythonPackage rec {
16 pname = "suseapi";
17 version = "0.24-31-g0fcbe96";
18
19 src = fetchFromGitHub {
20 owner = "openSUSE";
21 repo = "python-${pname}";
22 rev = version;
23 sha256 = "0hyzq0h1w8gp0zfvhqh7qsgcg1wp05a14371m6bn5a7gss93rbv4";
24 };
25
26 propagatedBuildInputs = [
27 django suds-jurko python-ldap mechanize beautifulsoup4 pyxdg python-dateutil requests
28 ];
29
30 buildInputs = [ httpretty ];
31
32 doCheck = false;
33
34 meta = {
35 homepage = "https://github.com/openSUSE/python-suseapi/";
36 description = "Python module to work with various SUSE services";
37 license = lib.licenses.gpl3Plus;
38 };
39}