python.pkgs.phonenumbers: use fetchPypi
This commit is contained in:
parent
61ea0eb88c
commit
ea491d4ea1
@ -1,19 +1,19 @@
|
|||||||
{ stdenv, fetchurl, buildPythonPackage }:
|
{ stdenv, fetchPypi, buildPythonPackage }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "phonenumbers";
|
pname = "phonenumbers";
|
||||||
version = "8.8.0";
|
version = "8.8.0";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0j8yzn7fva863v7vrjk0s1d63yswg8hf2hlpvfwzxk9absjyvmgq";
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers";
|
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers";
|
||||||
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
|
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
|
||||||
license = stdenv.lib.licenses.asl20;
|
license = stdenv.lib.licenses.asl20;
|
||||||
maintainers = with stdenv.lib.maintainers; [ fadenb ];
|
maintainers = with stdenv.lib.maintainers; [ fadenb ];
|
||||||
};
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://pypi/p/phonenumbers/${name}.tar.gz";
|
|
||||||
sha256 = "0j8yzn7fva863v7vrjk0s1d63yswg8hf2hlpvfwzxk9absjyvmgq";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user