mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 03:03:42 +00:00
python3Packages.strct: init at 0.0.32
This commit is contained in:
parent
d7821df52c
commit
809b19d7cb
52
pkgs/development/python-modules/strct/default.nix
Normal file
52
pkgs/development/python-modules/strct/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user