Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "qnap-qsw"; 10 version = "0.3.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.9"; 14 15 src = fetchFromGitHub { 16 owner = "Noltari"; 17 repo = "python-qnap-qsw"; 18 rev = version; 19 sha256 = "WP1bGt7aAtSVFOMJgPXKqVSbi5zj9K7qoIVrYCrPGqk="; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 ]; 25 26 # Project has no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "qnap_qsw" 31 ]; 32 33 meta = with lib; { 34 description = "Python library to interact with the QNAP QSW API"; 35 homepage = "https://github.com/Noltari/python-qnap-qsw"; 36 license = licenses.gpl2Only; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}