python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / ovoenergy / default.nix
blob6afc39dd82704103905719856ae03cccd1d8df90
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   click,
6   fetchFromGitHub,
7   incremental,
8   pythonOlder,
9   setuptools,
10   typer,
13 buildPythonPackage rec {
14   pname = "ovoenergy";
15   version = "2.0.0";
16   pyproject = true;
18   disabled = pythonOlder "3.11";
20   src = fetchFromGitHub {
21     owner = "timmo001";
22     repo = "ovoenergy";
23     rev = "refs/tags/${version}";
24     hash = "sha256-ZcTSf7UejEUqQo0qEXP3fWjZYRx0a3ZBNVkwS2dL3Yk=";
25   };
27   postPatch = ''
28     substituteInPlace requirements_setup.txt \
29       --replace-fail "==" ">="
30   '';
32   build-system = [
33     incremental
34     setuptools
35   ];
37   nativeBuildInputs = [ incremental ];
39   dependencies = [
40     aiohttp
41     click
42     typer
43   ];
45   # Project has no tests
46   doCheck = false;
48   pythonImportsCheck = [ "ovoenergy" ];
50   meta = with lib; {
51     description = "Python client for getting data from OVO's API";
52     homepage = "https://github.com/timmo001/ovoenergy";
53     changelog = "https://github.com/timmo001/ovoenergy/releases/tag/${version}";
54     license = licenses.mit;
55     maintainers = with maintainers; [ fab ];
56   };