nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 beautifulsoup4,
5 buildPythonPackage,
6 colorlog,
7 cryptography,
8 fetchFromGitHub,
9 orjson,
10 poetry-core,
11 pycryptodome,
12 pytest-cov-stub,
13 pytestCheckHook,
14 segno,
15}:
16
17buildPythonPackage (finalAttrs: {
18 pname = "aiovodafone";
19 version = "3.1.1";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "chemelli74";
24 repo = "aiovodafone";
25 tag = "v${finalAttrs.version}";
26 hash = "sha256-NhtclSuwiEuGAA/zhKEL/5S/WTFTjo87BTQPuSVX0sE=";
27 };
28
29 build-system = [ poetry-core ];
30
31 dependencies = [
32 aiohttp
33 beautifulsoup4
34 colorlog
35 cryptography
36 orjson
37 pycryptodome
38 segno
39 ];
40
41 nativeCheckInputs = [
42 pytest-cov-stub
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [ "aiovodafone" ];
47
48 meta = {
49 description = "Library to control Vodafon Station";
50 homepage = "https://github.com/chemelli74/aiovodafone";
51 changelog = "https://github.com/chemelli74/aiovodafone/blob/${finalAttrs.src.tag}/CHANGELOG.md";
52 license = lib.licenses.asl20;
53 maintainers = with lib.maintainers; [ fab ];
54 };
55})