Unverified Commit ed2b31e4 authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

python2Packages: drop unreferenced leaf packages (#479915)

parents 581eb9c2 bdedefce
Loading
Loading
Loading
Loading
+0 −28
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  isPy3k,
  isPyPy,
}:

buildPythonPackage rec {
  pname = "enum";
  version = "0.4.7";
  format = "setuptools";
  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "001iq0yqs9f5bslvl793bhkcs71k5km9kv8yrj5h0lfsgrcg6z4c";
  };

  doCheck = !isPyPy;

  meta = {
    homepage = "https://pypi.python.org/pypi/enum/";
    description = "Robust enumerated type support in Python";
    license = lib.licenses.gpl2;
  };

}
+0 −35
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  isPy3k,
  python,
  stdenv,
}:

buildPythonPackage rec {
  pname = "futures";
  version = "3.3.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "7e033af76a5e35f58e56da7a91e687706faf4e7bdfb2cbc3f2cca6b9bcda9794";
  };

  # This module is for backporting functionality to Python 2.x, it's builtin in py3k
  disabled = isPy3k;

  checkPhase = ''
    ${python.interpreter} test_futures.py
  '';

  doCheck = !stdenv.hostPlatform.isDarwin;

  meta = {
    description = "Backport of the concurrent.futures package from Python 3.2";
    homepage = "https://github.com/agronholm/pythonfutures";
    license = lib.licenses.bsd2;
    maintainers = [ ];
  };
}
+0 −28
Original line number Diff line number Diff line
diff --git a/scandir.py b/scandir.py
index 3f602fb..40af3e5 100644
--- a/scandir.py
+++ b/scandir.py
@@ -23,6 +23,7 @@ from os import listdir, lstat, stat, strerror
 from os.path import join, islink
 from stat import S_IFDIR, S_IFLNK, S_IFREG
 import collections
+import platform
 import sys
 
 try:
@@ -432,6 +433,15 @@ elif sys.platform.startswith(('linux', 'darwin', 'sunos5')) or 'bsd' in sys.plat
                     ('__d_padding', ctypes.c_uint8 * 4),
                     ('d_name', ctypes.c_char * 256),
                 )
+            elif 'darwin' in sys.platform and 'arm64' in platform.machine():
+                _fields_ = (
+                    ('d_ino', ctypes.c_uint64),
+                    ('d_off', ctypes.c_uint64),
+                    ('d_reclen', ctypes.c_uint16),
+                    ('d_namlen', ctypes.c_uint16),
+                    ('d_type', ctypes.c_uint8),
+                    ('d_name', ctypes.c_char * 1024),
+                )
             else:
                 _fields_ = (
                     ('d_ino', ctypes.c_uint32),  # must be uint32, not ulong
+0 −30
Original line number Diff line number Diff line
{
  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 = [ ];
  };
}
+0 −30
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  toml,
}:

buildPythonPackage rec {
  pname = "setuptools_scm";
  version = "5.0.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-g6DO3TRJ45RjB4EaTHudicS1/UZKL7XuzNCluxWK5cg=";
  };

  propagatedBuildInputs = [ toml ];

  # Requires pytest, circular dependency
  doCheck = false;
  pythonImportsCheck = [ "setuptools_scm" ];

  meta = {
    homepage = "https://github.com/pypa/setuptools_scm/";
    description = "Handles managing your python package versions in scm metadata";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
Loading