567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
37 lines
740 B
Nix
37 lines
740 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
pytz,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "l18n";
|
|
version = "2021.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-GVbokNZz0XE1zCCRMlPBVPa8HAAmbCK31QPMGlpC2Eg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pytz
|
|
six
|
|
];
|
|
|
|
# tests are not included in sdist and building from source is none trivial
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "l18n" ];
|
|
|
|
meta = {
|
|
description = "Locale internationalization package";
|
|
homepage = "https://github.com/tkhyn/l18n";
|
|
changelog = "https://github.com/tkhyn/l18n/blob/${version}/CHANGES.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sephi ];
|
|
};
|
|
}
|