diff --git a/pkgs/development/python-modules/scantree/default.nix b/pkgs/development/python-modules/scantree/default.nix new file mode 100644 index 000000000000..f9f8423968e4 --- /dev/null +++ b/pkgs/development/python-modules/scantree/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bffdd977ba0f..193874bcff95 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 };