0215034f25
when they already rely on SRI hashes.
31 lines
664 B
Nix
31 lines
664 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "language-tags";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OnroerendErfgoed";
|
|
repo = "language-tags";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-T9K290seKhQLqW36EfA9kn3WveKCmyjN4Mx2j50qIEk=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "language_tags" ];
|
|
|
|
meta = with lib; {
|
|
description = "Dealing with IANA language tags in Python";
|
|
homepage = "https://language-tags.readthedocs.io/en/latest/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|