2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2022-12-17 10:02:37 +00:00
|
|
|
, pyopenssl
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2024-04-21 15:54:59 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-02-20 05:27:41 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "netio";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.0.13";
|
|
|
|
pyproject = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netioproducts";
|
|
|
|
repo = "PyNetio";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
poetry-core
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pyopenssl"
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pyopenssl
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"Netio"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module for interacting with NETIO devices";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "Netio";
|
2022-02-20 05:27:41 +00:00
|
|
|
homepage = "https://github.com/netioproducts/PyNetio";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|