1{ lib, buildPythonPackage, fetchPypi, pythonPackages }:
2
3buildPythonPackage rec {
4 pname = "rfc6555";
5 version = "0.0.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "05sjrd6jc0sdvx0z7d3llk82rx366jlmc7ijam0nalsv66hbn70r";
10 };
11
12 propagatedBuildInputs = with pythonPackages; [ selectors2 ];
13
14 checkInputs = with pythonPackages; [ mock pytest ];
15 # disabling tests that require a functional DNS IPv{4,6} stack to pass.
16 patches = [ ./disable_network_tests.patch ];
17 # default doCheck = true; is not enough, apparently
18 postCheck = ''
19 py.test tests/
20 '';
21
22 meta = with lib; {
23 description = "Python implementation of the Happy Eyeballs Algorithm";
24 homepage = "https://pypi.org/project/rfc6555";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ endocrimes ];
27 };
28}