1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 isPy3k,
6 requests,
7}:
8
9buildPythonPackage rec {
10 pname = "pyupdate";
11 version = "1.4.0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "016f50853b4d72e5ddb963b042caa45fb60fa4d3f13aee819d829af21e55ef07";
17 };
18
19 propagatedBuildInputs = [ requests ];
20
21 # As of 0.2.16, pyupdate is intimately tied to Home Assistant which is py3 only
22 disabled = !isPy3k;
23
24 # no tests
25 doCheck = false;
26
27 meta = with lib; {
28 # This description is terrible, but it's what upstream uses.
29 description = "Package to update stuff";
30 homepage = "https://github.com/ludeeus/pyupdate";
31 license = licenses.mit;
32 maintainers = with maintainers; [ peterhoeg ];
33 };
34}