nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 dnspython, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "localzone"; 12 version = "0.9.8"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "ags-slc"; 17 repo = "localzone"; 18 tag = "v${version}"; 19 hash = "sha256-quAo5w4Oxu9Hu96inu3vuiQ9GZMLpq0M8Vj67IPYcbE="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ dnspython ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "localzone" ]; 29 30 postPatch = '' 31 # Fix tests with dnspython 2.8.0 32 # https://github.com/ags-slc/localzone/pull/6 33 substituteInPlace tests/test_models.py \ 34 --replace-fail 'raises((AttributeError, DNSSyntaxError))' 'raises((AttributeError, DNSSyntaxError, ValueError))' 35 ''; 36 37 meta = { 38 description = "Simple DNS library for managing zone files"; 39 homepage = "https://localzone.iomaestro.com"; 40 changelog = "https://github.com/ags-slc/localzone/blob/v${version}/CHANGELOG.rst"; 41 license = lib.licenses.bsd3; 42 }; 43}