evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pycountry-convert / default.nix
blob7dda05c909ad90875533187a9424abaa0575b975
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   pycountry,
7   repoze-lru,
8 }:
10 buildPythonPackage rec {
11   pname = "pycountry-convert";
12   version = "0.7.2";
13   pyproject = true;
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-CV0xD3Rr8qXvcTs6gu6iiicmIoYiN2Wx576KXE+n6bk=";
18   };
20   postPatch = ''
21     substituteInPlace setup.py \
22       --replace-fail "pytest-runner" ""
23   '';
25   build-system = [ setuptools ];
27   pythonRemoveDeps = [
28     "pprintpp"
29     "pytest"
30     "pytest-cov"
31     "repoze-lru"
32     "pytest-mock"
33   ];
35   propagatedBuildInputs = [
36     pycountry
37     repoze-lru
38   ];
40   pythonImportsCheck = [ "pycountry_convert" ];
42   # upstream has no tests
43   doCheck = false;
45   meta = {
46     description = "Python conversion functions between ISO country codes, countries, and continents";
47     homepage = "https://github.com/jefftune/pycountry-convert";
48     license = lib.licenses.mit;
49     maintainers = with lib.maintainers; [ dotlambda ];
50   };