nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 aiohttp,
3 aresponses,
4 buildPythonPackage,
5 fetchFromGitHub,
6 freezegun,
7 lib,
8 poetry-core,
9 pytest-cov-stub,
10 pytestCheckHook,
11 syrupy,
12}:
13
14buildPythonPackage rec {
15 pname = "pysmhi";
16 version = "1.1.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "gjohansson-ST";
21 repo = "pysmhi";
22 tag = "v${version}";
23 hash = "sha256-n2eDQ9fbELGvO/SYqdrwT+lZNIZs5GgihmrimvI3a1w=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 aiohttp
30 ];
31
32 pythonImportsCheck = [ "pysmhi" ];
33
34 nativeCheckInputs = [
35 aresponses
36 freezegun
37 pytest-cov-stub
38 pytestCheckHook
39 syrupy
40 ];
41
42 __darwinAllowLocalNetworking = true;
43
44 meta = {
45 changelog = "https://github.com/gjohansson-ST/pysmhi/releases/tag/${src.tag}";
46 description = "Retrieve open data from SMHI api";
47 homepage = "https://github.com/gjohansson-ST/pysmhi";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ dotlambda ];
50 };
51}