nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 docopt,
5 fetchFromGitHub,
6 requests,
7 requests-oauthlib,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "tellduslive";
13 version = "0.10.12";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "molobrakos";
18 repo = "tellduslive";
19 tag = "v${version}";
20 sha256 = "sha256-fWL+VSvoT+dT0jzD8DZEMxzTlqj4TYGCJPLpeui5q64=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 docopt
27 requests
28 requests-oauthlib
29 ];
30
31 # Module has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "tellduslive" ];
35
36 meta = {
37 description = "Python module to communicate with Telldus Live";
38 homepage = "https://github.com/molobrakos/tellduslive";
39 license = lib.licenses.unlicense;
40 maintainers = with lib.maintainers; [ fab ];
41 mainProgram = "tellduslive";
42 };
43}