1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, simplejson 6, fake-useragent 7}: 8 9buildPythonPackage rec { 10 pname = "pyatome"; 11 version = "0.1.1"; 12 13 src = fetchPypi { 14 pname = "pyAtome"; 15 inherit version; 16 sha256 = "7282e7ec258c69d4ddf2a5754ff07680a1ac92f9bfb478d601fd9e944fccd834"; 17 }; 18 19 propagatedBuildInputs = [ requests simplejson fake-useragent ]; 20 21 # no tests in PyPI tarballs 22 doCheck = false; 23 24 pythonImportsCheck = [ 25 "pyatome" 26 ]; 27 28 meta = with lib; { 29 description = "Python module to get energy consumption data from Atome"; 30 homepage = "https://github.com/baqs/pyAtome"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ uvnikita ]; 33 }; 34}