mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 00:40:33 +00:00
Diff: https://github.com/kjd/idna/compare/v3.18...v3.20 Changelog: https://github.com/kjd/idna/blob/v3.20/HISTORY.md
48 lines
981 B
Nix
48 lines
981 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "idna";
|
|
version = "3.20";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kjd";
|
|
repo = "idna";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-RLwFtWOxsf0s1DI5sdwYY/DuXbhyADqAbp0arREIc30=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
pythonImportsCheck = [ "idna" ];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
# infinite recursion via hypothesis
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
pytest = finalAttrs.finalPackage.overrideAttrs {
|
|
doInstallCheck = true;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/kjd/idna/";
|
|
changelog = "https://github.com/kjd/idna/blob/${finalAttrs.src.tag}/HISTORY.md";
|
|
description = "Internationalized Domain Names in Applications (IDNA)";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
};
|
|
})
|