python3Packages.scantree: init at 0.0.4

The package is needed by https://github.com/colcon/colcon-clean. It is
also packaged in Debian: https://packages.debian.org/trixie/python3-scantree.
This commit is contained in:
Michal Sojka
2026-03-31 09:01:56 +02:00
parent 46db2e09e1
commit 0d96633501
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
versioneer,
attrs,
pathspec,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "scantree";
version = "0.0.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Fb1cskSDsE2yxwZTYE6Oo1IumAh9t+OKuEgvBTmEwKw=";
};
build-system = [
setuptools
versioneer
];
dependencies = [
attrs
pathspec
];
pythonImportsCheck = [
"scantree"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Flexible recursive directory iterator: scandir meets glob(\"**\", recursive=True)";
homepage = "https://github.com/andhus/scantree";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ wentasah ];
};
}
+2
View File
@@ -17221,6 +17221,8 @@ self: super: with self; {
scanpy = callPackage ../development/python-modules/scanpy { };
scantree = callPackage ../development/python-modules/scantree { };
scapy = callPackage ../development/python-modules/scapy {
inherit (pkgs) libpcap; # Avoid confusion with python package of the same name
};