Commit 0d966335 authored by Michal Sojka's avatar Michal Sojka
Browse files

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.
parent 46db2e09
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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
  };