python3Packages.strct: init at 0.0.32

This commit is contained in:
Peder Bergebakken Sundt 2023-12-23 14:13:20 +01:00
parent d7821df52c
commit 809b19d7cb
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ 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 ];
};
}

View File

@ -13738,6 +13738,8 @@ self: super: with self; {
strawberry-graphql = callPackage ../development/python-modules/strawberry-graphql { };
strct = callPackage ../development/python-modules/strct { };
streamdeck = callPackage ../development/python-modules/streamdeck { };
streaming-form-data = callPackage ../development/python-modules/streaming-form-data { };