nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 asyncstdlib,
5 buildPythonPackage,
6 dataclasses-json,
7 fetchFromGitHub,
8 pytest-cov-stub,
9 pytest-mock,
10 pytestCheckHook,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "meteoswiss-async";
16 version = "0.1.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "albertomontesg";
21 repo = "meteoswiss-async";
22 tag = version;
23 hash = "sha256-xFvfyLZvBfnbzShKN+94piNUVjV1cfi4jWpc/Xw6XG4=";
24 };
25
26 pythonRelaxDeps = [
27 "aiohttp"
28 "asyncstdlib"
29 ];
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 aiohttp
35 asyncstdlib
36 dataclasses-json
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 pytest-mock
42 pytest-cov-stub
43 ];
44
45 pythonImportsCheck = [ "meteoswiss_async" ];
46
47 meta = {
48 description = "Asynchronous client library for MeteoSwiss API";
49 homepage = "https://github.com/albertomontesg/meteoswiss-async";
50 changelog = "https://github.com/albertomontesg/meteoswiss-async/releases/tag/${version}";
51 license = lib.licenses.mit;
52 maintainers = with lib.maintainers; [ fab ];
53 };
54}