Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 686 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyserial 5}: 6 7buildPythonPackage rec { 8 pname = "python-velbus"; 9 version = "2.1.2"; 10 11 src = fetchFromGitHub { 12 owner = "thomasdelaet"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "0dv7dsjp5li87ispdphaz7jd0a9xc328rxwawf2f58b1ii904xr4"; 16 }; 17 18 propagatedBuildInputs = [ pyserial ]; 19 20 # Project has not tests 21 doCheck = false; 22 pythonImportsCheck = [ "velbus" ]; 23 24 meta = with lib; { 25 description = "Python library to control the Velbus home automation system"; 26 homepage = "https://github.com/thomasdelaet/python-velbus"; 27 license = with licenses; [ mit ]; 28 maintainers = with maintainers; [ fab ]; 29 }; 30}