mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
42 lines
789 B
Nix
42 lines
789 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, future
|
|
, nose
|
|
, pytestCheckHook
|
|
, simplejson
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-whois";
|
|
version = "0.8.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
simplejson
|
|
];
|
|
|
|
# Exclude tests that require network access
|
|
disabledTests = [
|
|
"test_dk_parse"
|
|
"test_ipv4"
|
|
"test_ipv6"
|
|
];
|
|
pythonImportsCheck = [ "whois" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to produce parsed WHOIS data";
|
|
homepage = "https://github.com/richardpenman/whois";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|