35 lines
737 B
Nix
35 lines
737 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "idna";
|
|
version = "3.11";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kjd";
|
|
repo = "idna";
|
|
tag = "v${version}";
|
|
hash = "sha256-4mnWOit+lrZnVslVyfalt6lv7qSYpLlyvET553SplJU=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
pythonImportsCheck = [ "idna" ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/kjd/idna/";
|
|
changelog = "https://github.com/kjd/idna/releases/tag/${src.tag}";
|
|
description = "Internationalized Domain Names in Applications (IDNA)";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
};
|
|
}
|