Skip to content

Commit

Permalink
nix: Package stamina in nix
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Jan 7, 2024
1 parent 265986f commit 5e2a5b9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions lib/lsp-devtools/nix/lsp-devtools-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,38 @@ in {
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [(
python-final: python-prev: {

stamina = python-prev.buildPythonPackage rec {
pname = "stamina";
version = "24.1.0";
format = "pyproject";

src = prev.fetchFromGitHub {
owner = "hynek";
repo = "stamina";
rev = "refs/tags/${version}";
hash = "sha256-bIVzE9/QsdGw/UE83q3Q/XG3jFnPy65pkDdMpYkIrrs=";
};

SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = with python-final; [
hatchling
hatch-vcs
hatch-fancy-pypi-readme
];

propagatedBuildInputs = with python-final; [
tenacity
] ++ prev.lib.optional (pythonOlder "3.10") typing-extensions;

doCheck = true;
pythonImportsCheck = [ "stamina" ];
nativeCheckInputs = with python-prev; [
anyio
pytestCheckHook
];

};

lsp-devtools = python-prev.buildPythonPackage {
pname = "lsp-devtools";
version = versionStr;
Expand Down

0 comments on commit 5e2a5b9

Please sign in to comment.