1{
2 lib,
3 python,
4 buildPythonPackage,
5 fetchPypi,
6}:
7
8buildPythonPackage rec {
9 pname = "scandir";
10 version = "1.10.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1bkqwmf056pkchf05ywbnf659wqlp6lljcdb0y88wr9f0vv32ijd";
16 };
17
18 patches = [
19 ./add-aarch64-darwin-dirent.patch
20 ];
21
22 checkPhase = "${python.interpreter} test/run_tests.py";
23
24 meta = with lib; {
25 description = "Better directory iterator and faster os.walk()";
26 homepage = "https://github.com/benhoyt/scandir";
27 license = licenses.gpl3;
28 maintainers = [ ];
29 };
30}