mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
28 lines
672 B
Nix
28 lines
672 B
Nix
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "iso3166";
|
|
version = "0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deactivated";
|
|
repo = "python-iso3166";
|
|
# repo has no version tags
|
|
rev = "f04e499447bbff10af701cf3dd81f6bcdf02f7d7";
|
|
sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx";
|
|
};
|
|
|
|
buildInputs = [ 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 ];
|
|
};
|
|
}
|