evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / starline / default.nix
blob4fbccc73f76a682b53bc18f75875fa9a32357123
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchPypi,
6   fetchpatch,
7   setuptools,
8   requests,
9 }:
11 buildPythonPackage rec {
12   pname = "starline";
13   version = "0.1.5";
15   disabled = pythonOlder "3.5";
17   pyproject = true;
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-F1P1/NKml2rtd1r7A/g5IVnwQMZzkXzAxjRRDZXBPLk=";
22   };
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   ];
32   nativeBuildInputs = [ setuptools ];
34   propagatedBuildInputs = [ requests ];
36   # no tests implemented
37   doCheck = false;
39   pythonImportsCheck = [ "starline" ];
41   # https://github.com/Anonym-tsk/starline/issues/4
42   passthru.skipBulkUpdate = true;
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   };