Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 769 B view raw
1{ lib 2, aiohttp 3, attrs 4, buildPythonPackage 5, fetchPypi 6, jmespath 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pysma"; 12 version = "0.7.4"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-4u564tLk91duYv1IClHddur6t+Rbla/e9P0yWAxw2sw="; 20 }; 21 22 propagatedBuildInputs = [ 23 aiohttp 24 attrs 25 jmespath 26 ]; 27 28 # pypi does not contain tests and GitHub archive not available 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "pysma" 33 ]; 34 35 meta = with lib; { 36 description = "Python library for interacting with SMA Solar's WebConnect"; 37 homepage = "https://github.com/kellerza/pysma"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}