Files
nixpkgs/pkgs/development/python-modules/netio/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
967 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyopenssl,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "netio";
version = "1.0.13";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "netioproducts";
repo = "PyNetio";
tag = "v${version}";
hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA=";
};
nativeBuildInputs = [
poetry-core
];
pythonRelaxDeps = [ "pyopenssl" ];
propagatedBuildInputs = [
requests
pyopenssl
];
pythonImportsCheck = [ "Netio" ];
# Module has no tests
doCheck = false;
meta = {
description = "Module for interacting with NETIO devices";
mainProgram = "Netio";
homepage = "https://github.com/netioproducts/PyNetio";
changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}