nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

pythonPackages.iso3166: enable tests

fixes #24884

+14 -5
+14 -5
pkgs/development/python-modules/iso3166/default.nix
··· 1 - { stdenv, fetchurl, buildPythonPackage }: 2 - 1 + { stdenv, fetchFromGitHub, buildPythonPackage, pytest }: 2 + 3 3 buildPythonPackage rec { 4 4 name = "${pname}-${version}"; 5 5 pname = "iso3166"; 6 6 version = "0.8"; 7 7 8 - src = fetchurl { 9 - url = "mirror://pypi/i/${pname}/${name}.tar.gz"; 10 - sha256 = "fbeb17bed90d15b1f6d6794aa2ea458e5e273a1d29b6f4939423c97640e14933"; 8 + src = fetchFromGitHub { 9 + owner = "deactivated"; 10 + repo = "python-iso3166"; 11 + # repo has no version tags 12 + rev = "f04e499447bbff10af701cf3dd81f6bcdf02f7d7"; 13 + sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx"; 11 14 }; 15 + 16 + buildInputs = [ pytest ]; 17 + 18 + checkPhase = '' 19 + py.test 20 + ''; 12 21 13 22 meta = with stdenv.lib; { 14 23 homepage = https://github.com/deactivated/python-iso3166;