2021-01-24 00:29:22 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonPackages }:
|
2019-09-02 12:07:38 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rfc6555";
|
|
|
|
version = "0.0.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "05sjrd6jc0sdvx0z7d3llk82rx366jlmc7ijam0nalsv66hbn70r";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ selectors2 ];
|
|
|
|
|
2019-09-07 21:12:11 +01:00
|
|
|
checkInputs = with pythonPackages; [ mock pytest ];
|
|
|
|
# disabling tests that require a functional DNS IPv{4,6} stack to pass.
|
|
|
|
patches = [ ./disable_network_tests.patch ];
|
|
|
|
# default doCheck = true; is not enough, apparently
|
|
|
|
postCheck = ''
|
|
|
|
py.test tests/
|
|
|
|
'';
|
2019-09-02 12:07:38 +01:00
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2019-09-02 12:07:38 +01:00
|
|
|
description = "Python implementation of the Happy Eyeballs Algorithm";
|
|
|
|
homepage = "https://pypi.org/project/rfc6555";
|
2021-01-24 00:29:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ endocrimes ];
|
2019-09-02 12:07:38 +01:00
|
|
|
};
|
|
|
|
}
|