nixpkgs/pkgs/development/python-modules/strct/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

49 lines
958 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pytestCheckHook,
pytest-cov-stub,
sortedcontainers,
}:
buildPythonPackage rec {
pname = "strct";
version = "0.0.35";
pyproject = true;
src = fetchFromGitHub {
owner = "shaypal5";
repo = "strct";
tag = "v${version}";
hash = "sha256-4IykGzy1PTrRAbx/sdtzL4My4cDSlplL9rOFBcLbaB8=";
};
# don't append .dev0 to version
env.RELEASING_PROCESS = "1";
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
sortedcontainers
];
pythonImportsCheck = [
"strct"
"strct.dicts"
"strct.hash"
"strct.lists"
"strct.sets"
"strct.sortedlists"
];
meta = {
description = "Small pure-python package for data structure related utility functions";
homepage = "https://github.com/shaypal5/strct";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pbsds ];
};
}