e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
52 lines
968 B
Nix
52 lines
968 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, setuptools
|
|
, pytestCheckHook
|
|
, sortedcontainers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "strct";
|
|
version = "0.0.32";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shaypal5";
|
|
repo = "strct";
|
|
rev = "v${version}";
|
|
hash = "sha256-ctafvdfSOdp7tlCUYg7d5XTXR1qBcWvOVtGtNUnhYIw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace \
|
|
"--cov" \
|
|
"#--cov"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
sortedcontainers
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"strct"
|
|
"strct.dicts"
|
|
"strct.hash"
|
|
"strct.lists"
|
|
"strct.sets"
|
|
"strct.sortedlists"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A small pure-python package for data structure related utility functions";
|
|
homepage = "https://github.com/shaypal5/strct";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ pbsds ];
|
|
};
|
|
}
|