nixpkgs/pkgs/development/python-modules/rfc6555/default.nix

44 lines
865 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, selectors2
}:
2019-09-02 12:07:38 +01:00
buildPythonPackage rec {
pname = "rfc6555";
version = "0.1.0";
format = "setuptools";
2019-09-02 12:07:38 +01:00
src = fetchFromGitHub {
owner = "sethmlarson";
repo = pname;
rev = "v${version}";
sha256 = "Lmwgusc4EQlF0GHmMTUxWzUCjBk19cvurNwbOnT+1jM=";
2019-09-02 12:07:38 +01:00
};
propagatedBuildInputs = [
selectors2
];
2019-09-02 12:07:38 +01:00
checkInputs = [
pytestCheckHook
];
disabledTests = [
# Disabling tests that require a functional DNS IPv{4,6} stack to pass
"test_create_connection_has_proper_timeout"
];
pythonImportsCheck = [
"rfc6555"
];
2019-09-02 12:07:38 +01:00
meta = with lib; {
2019-09-02 12:07:38 +01:00
description = "Python implementation of the Happy Eyeballs Algorithm";
homepage = "https://github.com/sethmlarson/rfc6555";
license = licenses.asl20;
maintainers = with maintainers; [ endocrimes ];
2019-09-02 12:07:38 +01:00
};
}