blob: 0496aad832614eb163046cbadad7ee6e11f01833 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch
, setuptools
, requests
}:
buildPythonPackage rec {
pname = "starline";
version = "0.1.5";
disabled = pythonOlder "3.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-F1P1/NKml2rtd1r7A/g5IVnwQMZzkXzAxjRRDZXBPLk=";
};
patches = [
# https://github.com/Anonym-tsk/starline/pull/5
(fetchpatch {
url = "https://github.com/Anonym-tsk/starline/commit/4e6cdf8e05c5fb8509ee384e77b39a2495587160.patch";
hash = "sha256-y9b6ePH3IEgmt3ALHQGwH102rlm4KfmH4oIoIC93cWU=";
})
];
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
requests
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "starline" ];
# https://github.com/Anonym-tsk/starline/issues/4
passthru.skipBulkUpdate = true;
meta = with lib; {
description = "Unofficial python library for StarLine API";
homepage = "https://github.com/Anonym-tsk/starline";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}
|