This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
50 lines
960 B
Nix
50 lines
960 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
sortedcontainers,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "strct";
|
|
version = "0.0.34";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shaypal5";
|
|
repo = "strct";
|
|
rev = "v${version}";
|
|
hash = "sha256-uPM2U+emZUCGqEhIeTBmaOu8eSfK4arqvv9bItBWpUs=";
|
|
};
|
|
|
|
# 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 = with lib; {
|
|
description = "Small pure-python package for data structure related utility functions";
|
|
homepage = "https://github.com/shaypal5/strct";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ pbsds ];
|
|
};
|
|
}
|