nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "meteocalc";
10 version = "1.1.0";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "malexer";
15 repo = "meteocalc";
16 rev = version;
17 hash = "sha256-WuIW6hROQkjMfbCLUouECIrp4s6oCd2/N79hsrTbVTk=";
18 };
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 pythonImportsCheck = [ "meteocalc" ];
23
24 meta = {
25 description = "Module for calculation of meteorological variables";
26 homepage = "https://github.com/malexer/meteocalc";
27 license = lib.licenses.mit;
28 maintainers = with lib.maintainers; [ fab ];
29 };
30}