nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python,
4 buildPythonPackage,
5 fetchPypi,
6}:
7
8buildPythonPackage rec {
9 pname = "dnslib";
10 version = "0.9.26";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-vlaFdTQ5Cy+9ApNScAGbrMXmtBHRVss5IaxVp/tR8ag=";
16 };
17
18 checkPhase = ''
19 VERSIONS=${python.interpreter} ./run_tests.sh
20 '';
21
22 pythonImportsCheck = [ "dnslib" ];
23
24 meta = {
25 description = "Simple library to encode/decode DNS wire-format packets";
26 homepage = "https://github.com/paulc/dnslib";
27 license = lib.licenses.bsd2;
28 maintainers = [ ];
29 };
30}