uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
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>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
67
pkgs/development/python-modules/asyncwhois/default.nix
Normal file
67
pkgs/development/python-modules/asyncwhois/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ lib
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, python-socks
|
||||
, pythonOlder
|
||||
, tldextract
|
||||
, whodap
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asyncwhois";
|
||||
version = "1.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pogzyb";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-9tSGfF/Ezuya4pEyr1XolWXvSO/F/UrobRVlyHITNTU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-socks
|
||||
tldextract
|
||||
whodap
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "python-socks[asyncio]" "python-socks"
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Tests require network access
|
||||
"test_pywhois_aio_get_hostname_from_ip"
|
||||
"test_pywhois_get_hostname_from_ip"
|
||||
"test_pywhois_aio_lookup_ipv4"
|
||||
"test_not_found"
|
||||
"test_aio_from_whois_cmd"
|
||||
"test_aio_get_hostname_from_ip"
|
||||
"test_from_whois_cmd"
|
||||
"test_get_hostname_from_ip"
|
||||
"test_whois_query_run"
|
||||
"test_whois_query_create_connection"
|
||||
"test_whois_query_send_and_recv"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"asyncwhois"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for retrieving WHOIS information";
|
||||
homepage = "https://github.com/pogzyb/asyncwhois";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue