parent
51770c85e4
commit
a7d2be1471
@ -1,15 +1,24 @@
|
|||||||
{ stdenv, fetchurl, buildPythonPackage }:
|
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "iso3166";
|
pname = "iso3166";
|
||||||
version = "0.8";
|
version = "0.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://pypi/i/${pname}/${name}.tar.gz";
|
owner = "deactivated";
|
||||||
sha256 = "fbeb17bed90d15b1f6d6794aa2ea458e5e273a1d29b6f4939423c97640e14933";
|
repo = "python-iso3166";
|
||||||
|
# repo has no version tags
|
||||||
|
rev = "f04e499447bbff10af701cf3dd81f6bcdf02f7d7";
|
||||||
|
sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/deactivated/python-iso3166;
|
homepage = https://github.com/deactivated/python-iso3166;
|
||||||
description = "Self-contained ISO 3166-1 country definitions";
|
description = "Self-contained ISO 3166-1 country definitions";
|
||||||
|
Loading…
Reference in New Issue
Block a user