nixpkgs/pkgs/development/python-modules/language-tags/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

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 ];
};
}