nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodome,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "aiowmi";
12 version = "0.2.3";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "cesbit";
17 repo = "aiowmi";
18 tag = "v${version}";
19 hash = "sha256-bKxGIUxGAW1GDa5xlv9NNWr5xLTdpK5dSsym/5y9nGQ=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ pycryptodome ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "aiowmi" ];
29
30 meta = {
31 description = "Python WMI Queries";
32 homepage = "https://github.com/cesbit/aiowmi";
33 changelog = "https://github.com/cesbit/aiowmi/releases/tag/v${version}";
34 license = lib.licenses.gpl3Only;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}