nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 41 lines 845 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 setuptools, 7 urllib3, 8}: 9 10buildPythonPackage rec { 11 pname = "openwrt-ubus-rpc"; 12 version = "0.0.3"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Noltari"; 17 repo = "python-ubus-rpc"; 18 tag = version; 19 hash = "sha256-M4hbnGrAjBjohwgMf6qw5NQnpyKCZ0/4HVklHhizTKc="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ 25 requests 26 urllib3 27 ]; 28 29 # Project has no tests 30 doCheck = false; 31 32 pythonImportsCheck = [ "openwrt.ubus" ]; 33 34 meta = { 35 description = "Python API for OpenWrt ubus RPC"; 36 homepage = "https://github.com/Noltari/python-ubus-rpc"; 37 changelog = "https://github.com/Noltari/python-ubus-rpc/releases/tag/${version}"; 38 license = with lib.licenses; [ gpl2Only ]; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41}