depot/third_party/nixpkgs/pkgs/development/python-modules/openwrt-ubus-rpc/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

34 lines
697 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "openwrt-ubus-rpc";
version = "0.0.3";
src = fetchFromGitHub {
owner = "Noltari";
repo = "python-ubus-rpc";
rev = version;
sha256 = "19scncc1w9ar3pw4yrw24akjgm74n2m7y308hzl1i360daf5p21k";
};
propagatedBuildInputs = [
requests
urllib3
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "openwrt.ubus" ];
meta = with lib; {
description = "Python API for OpenWrt ubus RPC";
homepage = "https://github.com/Noltari/python-ubus-rpc";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ fab ];
};
}