nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pyopenssl,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "netio";
12 version = "1.0.13";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "netioproducts";
17 repo = "PyNetio";
18 tag = "v${version}";
19 hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 pythonRelaxDeps = [ "pyopenssl" ];
27
28 propagatedBuildInputs = [
29 requests
30 pyopenssl
31 ];
32
33 pythonImportsCheck = [ "Netio" ];
34
35 # Module has no tests
36 doCheck = false;
37
38 meta = {
39 description = "Module for interacting with NETIO devices";
40 mainProgram = "Netio";
41 homepage = "https://github.com/netioproducts/PyNetio";
42 changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ fab ];
45 };
46}