44c948f56a
Diff: https://github.com/netioproducts/PyNetio/compare/refs/tags/v1.0.10...v1.0.13 Changelog: https://github.com/netioproducts/PyNetio/blob/v1.0.13/CHANGELOG.md
48 lines
924 B
Nix
48 lines
924 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pyopenssl
|
|
, pythonOlder
|
|
, requests
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "netio";
|
|
version = "1.0.13";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netioproducts";
|
|
repo = "PyNetio";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
pyopenssl
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"Netio"
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Module for interacting with NETIO devices";
|
|
homepage = "https://github.com/netioproducts/PyNetio";
|
|
changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|