Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 70 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, fetchFromGitHub, setuptools-scm, setuptools, python, docutils, jaraco-collections, jaraco-functools, jaraco-envs, jaraco-path, jaraco-text, more-itertools, packaging, path, pyfakefs, pytestCheckHook, stdenv,}:
buildPythonPackage rec { pname = "distutils"; inherit (setuptools) version; pyproject = true;
src = fetchFromGitHub { owner = "pypa"; repo = "distutils"; rev = "72837514c2b67081401db556be9aaaa43debe44f"; # correlate commit from setuptools version hash = "sha256-Kx4Iudy9oZ0oQT96Meyq/m0k0BuexPLVxwvpNJehCW0="; };
build-system = [ setuptools-scm ];
dependencies = [ jaraco-collections jaraco-functools more-itertools packaging ];
postInstall = '' rm -r $out/${python.sitePackages}/distutils ln -s ${setuptools}/${python.sitePackages}/setuptools/_distutils $out/${python.sitePackages}/distutils '';
pythonImportsCheck = [ "distutils" ];
nativeCheckInputs = [ docutils jaraco-envs jaraco-path jaraco-text more-itertools path pyfakefs pytestCheckHook ];
# jaraco-path depends ob pyobjc doCheck = !stdenv.isDarwin;
meta = { description = "Distutils as found in cpython"; homepage = "https://github.com/pypa/distutils"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; };}