evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / mygpoclient / default.nix
blob8205ba66befebffc776c2440c6904c2ec086ca1d
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   setuptools,
6   minimock,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "mypgoclient";
12   version = "1.9";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "gpodder";
17     repo = "mygpoclient";
18     rev = version;
19     hash = "sha256-McHllitWiBiCdNuJlUg6K/vgr2l3ychu+KOx3r/UCv0=";
20   };
22   postPatch = ''
23     substituteInPlace mygpoclient/*_test.py \
24       --replace-quiet "assertEquals" "assertEqual" \
25       --replace-quiet "assert_" "assertTrue"
26   '';
28   build-system = [ setuptools ];
30   pythonImportsCheck = [ "mygpoclient" ];
32   nativeCheckInputs = [
33     minimock
34     pytestCheckHook
35   ];
37   __darwinAllowLocalNetworking = true;
39   meta = with lib; {
40     description = "Gpodder.net client library";
41     longDescription = ''
42       The mygpoclient library allows developers to utilize a Pythonic interface
43       to the gpodder.net web services.
44     '';
45     homepage = "https://github.com/gpodder/mygpoclient";
46     license = with licenses; [ gpl3 ];
47     maintainers = [ ];
48   };