nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 30 lines 625 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "fqdn"; 10 version = "1.5.1"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "ypcrts"; 15 repo = "fqdn"; 16 rev = "v${version}"; 17 hash = "sha256-T0CdWWr8p3JVhp3nol5hyxsrD3951JE2EDpFt+m+3bE="; 18 }; 19 20 nativeCheckInputs = [ pytestCheckHook ]; 21 22 pythonImportsCheck = [ "fqdn" ]; 23 24 meta = { 25 description = "RFC-compliant FQDN validation and manipulation"; 26 homepage = "https://github.com/ypcrts/fqdn"; 27 license = lib.licenses.mpl20; 28 maintainers = with lib.maintainers; [ fab ]; 29 }; 30}