Unverified Commit 49b9107d authored by Fabián Heredia Montiel's avatar Fabián Heredia Montiel Committed by GitHub
Browse files

coconut: add missing dependency (#501193)

parents cb5d703f 8d942f5f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
  prompt-toolkit,
  setuptools,
  tkinter,
  tstr,
  watchdog,
}:

@@ -42,6 +43,7 @@ buildPythonPackage rec {
    pygments
    prompt-toolkit
    setuptools
    tstr
    watchdog
  ];

+36 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  pytestCheckHook,
  pytest-cov-stub,
}:

buildPythonPackage (finalAttrs: {
  pname = "tstr";
  version = "0.4.0.post1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ilotoki0804";
    repo = "tstr";
    tag = "v${finalAttrs.version}";
    hash = "sha256-0IWisLpgJETGCBk1cqOnmlf1yvpNUajEiY+Qn2gxH0w=";
  };

  build-system = [ hatchling ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

  pythonImportsCheck = [ "tstr" ];

  meta = {
    description = "Backports of various template string utilities";
    license = [ lib.licenses.asl20 ];
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -19693,6 +19693,8 @@ self: super: with self; {
  tsplib95 = callPackage ../development/python-modules/tsplib95 { };
  tstr = callPackage ../development/python-modules/tstr { };
  tt-flash = callPackage ../development/python-modules/tt-flash { };
  tt-tools-common = callPackage ../development/python-modules/tt-tools-common { };