https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
31 lines
703 B
Nix
31 lines
703 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-i18n-address";
|
|
version = "2.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mirumee";
|
|
repo = "google-i18n-address";
|
|
rev = version;
|
|
sha256 = "sha256-VQEDZkGseZTKOsAMgNYyf6FcgnCjLPpWXijeUmtgyv0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "i18naddress" ];
|
|
|
|
meta = with lib; {
|
|
description = "Google's i18n address data packaged for Python";
|
|
homepage = "https://github.com/mirumee/google-i18n-address";
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|