567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
31 lines
586 B
Nix
31 lines
586 B
Nix
{
|
|
lib,
|
|
python,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scandir";
|
|
version = "1.10.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1bkqwmf056pkchf05ywbnf659wqlp6lljcdb0y88wr9f0vv32ijd";
|
|
};
|
|
|
|
patches = [
|
|
./add-aarch64-darwin-dirent.patch
|
|
];
|
|
|
|
checkPhase = "${python.interpreter} test/run_tests.py";
|
|
|
|
meta = {
|
|
description = "Better directory iterator and faster os.walk()";
|
|
homepage = "https://github.com/benhoyt/scandir";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|