python3Packages.pyroon: init at 0.0.37
This commit is contained in:
parent
68011a2494
commit
16fc720da3
57
pkgs/development/python-modules/pyroon/default.nix
Normal file
57
pkgs/development/python-modules/pyroon/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, ifaddr
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
, requests
|
||||
, six
|
||||
, websocket_client
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyroon";
|
||||
version = "0.0.37";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pavoni";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1hxr473z9h3kb91m3ygina58pfwfyjsv1yb29spxmnbzvk34rzzz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ifaddr
|
||||
requests
|
||||
six
|
||||
websocket_client
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Switch to poetry-core, https://github.com/pavoni/pyroon/pull/43
|
||||
(fetchpatch {
|
||||
name = "use-peotry-core.patch";
|
||||
url = "https://github.com/pavoni/pyroon/commit/16f890314683a6c2700fa4da5c937559e2e24bea.patch";
|
||||
sha256 = "047bhimr72rwqqyjy7jkfzacdc2ycy81wbmgnvf7xyhgjw1jyvh5";
|
||||
})
|
||||
];
|
||||
|
||||
# Tests require access to the Roon API
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "roonapi" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to interface with the Roon API";
|
||||
homepage = "https://github.com/pavoni/pyroon";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -6202,6 +6202,8 @@ in {
|
||||
|
||||
pyro-ppl = callPackage ../development/python-modules/pyro-ppl { };
|
||||
|
||||
pyroon = callPackage ../development/python-modules/pyroon { };
|
||||
|
||||
pyroute2 = callPackage ../development/python-modules/pyroute2 { };
|
||||
|
||||
pyrr = callPackage ../development/python-modules/pyrr { };
|
||||
|
Loading…
Reference in New Issue
Block a user