nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 dataclasses-json,
8 requests,
9 pytestCheckHook,
10 pytest-xdist,
11 requests-mock,
12 syrupy,
13}:
14
15buildPythonPackage rec {
16 pname = "pyecotrend-ista";
17 version = "3.5.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "Ludy87";
22 repo = "pyecotrend-ista";
23 tag = version;
24 hash = "sha256-O5HU0U19E+cS1/UVYouxbyTBNjenJw9kkH80GCZ04cw=";
25 };
26
27 postPatch = ''
28 sed -i "/addopts =/d" pyproject.toml
29 '';
30
31 build-system = [
32 setuptools
33 setuptools-scm
34 ];
35
36 dependencies = [
37 dataclasses-json
38 requests
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 pytest-xdist
44 requests-mock
45 syrupy
46 ];
47
48 pythonImportsCheck = [ "pyecotrend_ista" ];
49
50 meta = {
51 changelog = "https://github.com/Ludy87/pyecotrend-ista/releases/tag/${version}";
52 description = "Unofficial python library for the pyecotrend-ista API";
53 homepage = "https://github.com/Ludy87/pyecotrend-ista";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ oynqr ];
56 };
57}