Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 dnspython,
5 fetchFromGitHub,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "srvlookup";
11 version = "3.0.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "gmr";
16 repo = "srvlookup";
17 tag = version;
18 hash = "sha256-iXbi25HsoNX0hnhwZoFik5ddlJ7i+xml3HGaezj3jgY=";
19 };
20
21 propagatedBuildInputs = [ dnspython ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "srvlookup" ];
26
27 meta = {
28 description = "Wrapper for dnspython to return SRV records for a given host, protocol, and domain name";
29 homepage = "https://github.com/gmr/srvlookup";
30 license = with lib.licenses; [ bsd3 ];
31 maintainers = with lib.maintainers; [ mmlb ];
32 };
33}