evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / hiyapyco / default.nix
blobe65e8e87f4eb98a3e3c03b7f809a954d6defbe4c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pyyaml,
7   jinja2,
8 }:
10 buildPythonPackage rec {
11   pname = "hiyapyco";
12   version = "0.7.0";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "zerwes";
17     repo = pname;
18     rev = "refs/tags/release-${version}";
19     hash = "sha256-uF5DblAg4q8L1tZKopcjJ14NIQVQF5flNHdZ/jnw71M=";
20   };
22   nativeBuildInputs = [ setuptools ];
24   propagatedBuildInputs = [
25     pyyaml
26     jinja2
27   ];
29   checkPhase = ''
30     runHook preCheck
32     set -e
33     find test -name 'test_*.py' -exec python {} \;
35     runHook postCheck
36   '';
38   pythonImportsCheck = [ "hiyapyco" ];
40   meta = with lib; {
41     description = "Python library allowing hierarchical overlay of config files in YAML syntax";
42     homepage = "https://github.com/zerwes/hiyapyco";
43     license = licenses.gpl3Plus;
44     maintainers = with maintainers; [ veehaitch ];
45   };