depot/third_party/nixpkgs/pkgs/development/python-modules/webthing/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
854 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
ifaddr,
jsonschema,
pyee,
pythonOlder,
tornado,
zeroconf,
}:
buildPythonPackage rec {
pname = "webthing";
version = "0.15.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "WebThingsIO";
repo = "webthing-python";
rev = "v${version}";
hash = "sha256-z4GVycdq25QZxuzZPLg6nhj0MAD1bHrsqph4yHgmRhg=";
};
propagatedBuildInputs = [
ifaddr
jsonschema
pyee
tornado
zeroconf
];
# No tests are present
doCheck = false;
pythonImportsCheck = [ "webthing" ];
meta = with lib; {
description = "Python implementation of a Web Thing server";
homepage = "https://github.com/WebThingsIO/webthing-python";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ fab ];
};
}