python.pkgs.phonenumbers: use fetchPypi

This commit is contained in:
Jörg Thalheim 2017-08-25 20:40:46 +01:00
parent 61ea0eb88c
commit ea491d4ea1

View file

@ -1,19 +1,19 @@
{ stdenv, fetchurl, buildPythonPackage }:
{ stdenv, fetchPypi, buildPythonPackage }:
buildPythonPackage rec {
pname = "phonenumbers";
version = "8.8.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0j8yzn7fva863v7vrjk0s1d63yswg8hf2hlpvfwzxk9absjyvmgq";
};
meta = {
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers";
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ fadenb ];
};
src = fetchurl {
url = "mirror://pypi/p/phonenumbers/${name}.tar.gz";
sha256 = "0j8yzn7fva863v7vrjk0s1d63yswg8hf2hlpvfwzxk9absjyvmgq";
};
}