summary refs log tree commit diff
path: root/pkgs/development/python-modules/iso3166/default.nix
blob: 54d9aff280f6ae3f4abfecf2b38631e5af70ae32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:

buildPythonPackage {
  pname = "iso3166";
  version = "0.8";

  src = fetchFromGitHub {
    owner = "deactivated";
    repo = "python-iso3166";
    # repo has no version tags
    rev = "f04e499447bbff10af701cf3dd81f6bcdf02f7d7";
    sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx";
  };

  checkInputs = [ pytest ];

  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/deactivated/python-iso3166;
    description = "Self-contained ISO 3166-1 country definitions";
    license = licenses.mit;
    maintainers = with maintainers; [ zraexy ];
  };
}