1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 fetchpatch,
7 setuptools,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "starline";
13 version = "0.1.5";
14
15 disabled = pythonOlder "3.5";
16
17 pyproject = true;
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-F1P1/NKml2rtd1r7A/g5IVnwQMZzkXzAxjRRDZXBPLk=";
22 };
23
24 patches = [
25 # https://github.com/Anonym-tsk/starline/pull/5
26 (fetchpatch {
27 url = "https://github.com/Anonym-tsk/starline/commit/4e6cdf8e05c5fb8509ee384e77b39a2495587160.patch";
28 hash = "sha256-y9b6ePH3IEgmt3ALHQGwH102rlm4KfmH4oIoIC93cWU=";
29 })
30 ];
31
32 nativeBuildInputs = [ setuptools ];
33
34 propagatedBuildInputs = [ requests ];
35
36 # no tests implemented
37 doCheck = false;
38
39 pythonImportsCheck = [ "starline" ];
40
41 # https://github.com/Anonym-tsk/starline/issues/4
42 passthru.skipBulkUpdate = true;
43
44 meta = with lib; {
45 description = "Unofficial python library for StarLine API";
46 homepage = "https://github.com/Anonym-tsk/starline";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ dotlambda ];
49 };
50}