diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-31 15:51:55 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-31 15:51:55 +0200 |
commit | f8beeb6f596593ce9d64a4d41e4edda794b5ed6f (patch) | |
tree | 0864867488ef44c451a75b7a85b62c21f8413dc6 /pkgs/development/python-modules/aiodns/default.nix | |
parent | 9f73d45e2ed02f32058f46de2cebc5b57c2617b5 (diff) |
python3Packages.aiodns: 2.0.0 -> 3.0.0
Diffstat (limited to 'pkgs/development/python-modules/aiodns/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiodns/default.nix | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/aiodns/default.nix b/pkgs/development/python-modules/aiodns/default.nix index b2d725e8378c1..9c626618ff0a9 100644 --- a/pkgs/development/python-modules/aiodns/default.nix +++ b/pkgs/development/python-modules/aiodns/default.nix @@ -1,30 +1,38 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder -, python, pycares, typing ? null +{ lib +, buildPythonPackage +, fetchFromGitHub +, pycares +, pythonOlder +, typing }: buildPythonPackage rec { pname = "aiodns"; - version = "2.0.0"; - disabled = pythonOlder "3.5"; + version = "3.0.0"; + disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d"; + src = fetchFromGitHub { + owner = "saghul"; + repo = pname; + rev = "aiodns-${version}"; + sha256 = "1i91a43gsq222r8212jn4m6bxc3fl04z1mf2h7s39nqywxkggvlp"; }; - propagatedBuildInputs = [ pycares ] - ++ lib.optional (pythonOlder "3.7") typing; + propagatedBuildInputs = [ + pycares + ] ++ lib.optional (pythonOlder "3.7") [ + typing + ]; - checkPhase = '' - ${python.interpreter} tests.py - ''; - - # 'Could not contact DNS servers' + # Could not contact DNS servers doCheck = false; + pythonImportsCheck = [ "aiodns" ]; + meta = with lib; { + description = "Simple DNS resolver for asyncio"; homepage = "https://github.com/saghul/aiodns"; license = licenses.mit; - description = "Simple DNS resolver for asyncio"; + maintainers = with maintainers; [ fab ]; }; } |