Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 77 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, buildPythonPackage, fetchFromGitHub, replaceVars,
# build-system flit-scm, wheel,
# dependencies flit-core, gettext,
# tests build, pytestCheckHook, pytest-cov-stub,}:
buildPythonPackage rec { pname = "flit-gettext"; version = "1.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "codingjoe"; repo = "flit-gettext"; rev = version; hash = "sha256-YsRfpciSrHmivEJKfzdp6UaPx2tSr3VdjU4ZIbYQX6c="; };
patches = [ (replaceVars ./msgfmt-path.patch { msgfmt = lib.getExe' gettext "msgfmt"; }) ];
nativeBuildInputs = [ flit-scm wheel ];
propagatedBuildInputs = [ flit-core ];
optional-dependencies = { scm = [ flit-scm ]; };
nativeCheckInputs = [ build pytestCheckHook pytest-cov-stub wheel ] ++ optional-dependencies.scm;
disabledTests = [ # tests for missing msgfmt, but we always provide it "test_compile_gettext_translations__no_gettext" ];
disabledTestPaths = [ # calls python -m build, but can't find build "tests/test_core.py" "tests/test_scm.py" ];
pythonImportsCheck = [ "flit_gettext" ];
meta = with lib; { description = "Compiling gettext i18n messages during project bundling"; homepage = "https://github.com/codingjoe/flit-gettext"; license = licenses.bsd2; maintainers = with maintainers; [ hexa ]; };}