nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "pyedimax";
11 version = "0.2.1";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-M5cVQjqPZCQMKS8vv+xw2x6KlRqB6mOezwLi53fJb8Q=";
17 };
18
19 build-system = [ setuptools ];
20
21 dependencies = [ requests ];
22
23 # Module has no tests
24 doCheck = false;
25
26 pythonImportsCheck = [ "pyedimax" ];
27
28 meta = {
29 description = "Python library for interfacing with the Edimax smart plugs";
30 homepage = "https://github.com/andreipop2005/pyedimax";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ fab ];
33 };
34}