mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
python312Packages.distutils: init at 70.0.0
Take the actual code from setuptools for compatibility.
This commit is contained in:
parent
c0cb147cbb
commit
e8d58b99af
54
pkgs/development/python-modules/distutils/default.nix
Normal file
54
pkgs/development/python-modules/distutils/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools-scm,
|
||||
setuptools,
|
||||
python,
|
||||
jaraco-envs,
|
||||
jaraco-path,
|
||||
jaraco-text,
|
||||
more-itertools,
|
||||
path,
|
||||
pyfakefs,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "distutils";
|
||||
inherit (setuptools) version;
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pypa";
|
||||
repo = "distutils";
|
||||
rev = "813ab9868b353991ec7324eb09619ee5beb9183f";
|
||||
hash = "sha256-/YtITDuZlTJRisqsQ6SrgRRUrqLZpj+k3drrouURZlc=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
postInstall = ''
|
||||
rm -r $out/${python.sitePackages}/distutils
|
||||
ln -s ${setuptools}/${python.sitePackages}/setuptools/_distutils $out/${python.sitePackages}/distutils
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "distutils" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
jaraco-envs
|
||||
jaraco-path
|
||||
jaraco-text
|
||||
more-itertools
|
||||
path
|
||||
pyfakefs
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Distutils as found in cpython";
|
||||
homepage = "https://github.com/pypa/distutils";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -3179,6 +3179,8 @@ self: super: with self; {
|
||||
|
||||
distro = callPackage ../development/python-modules/distro { };
|
||||
|
||||
distutils = if pythonOlder "3.12" then null else callPackage ../development/python-modules/distutils { };
|
||||
|
||||
distutils-extra = callPackage ../development/python-modules/distutils-extra { };
|
||||
|
||||
# LTS in extended support phase
|
||||
|
Loading…
Reference in New Issue
Block a user