diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools')
3 files changed, 34 insertions, 4 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/44.0.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/44.0.nix index 66330ca250f8..c2f6eb230b47 100644 --- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/44.0.nix +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/44.0.nix @@ -27,14 +27,23 @@ let name = "${pname}-${version}-source"; }; + patches = [ + ./tag-date.patch + ]; + buildPhase = '' ${python.pythonForBuild.interpreter} bootstrap.py ${python.pythonForBuild.interpreter} setup.py sdist --formats=gztar + + # Here we untar the sdist and retar it in order to control the timestamps + # of all the files included + tar -xzf dist/${pname}-${version}.post0.tar.gz -C dist/ + tar -czf dist/${name} -C dist/ --mtime="@$SOURCE_DATE_EPOCH" ${pname}-${version}.post0 ''; installPhase = '' echo "Moving sdist..." - mv dist/*.tar.gz $out + mv dist/${name} $out ''; }; in buildPythonPackage rec { diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/default.nix index b618ec6f634b..f30e8dd5cdb3 100644 --- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/default.nix @@ -13,7 +13,7 @@ let pname = "setuptools"; - version = "47.3.1"; + version = "50.3.1"; # Create an sdist of setuptools sdist = stdenv.mkDerivation rec { @@ -23,18 +23,27 @@ let owner = "pypa"; repo = pname; rev = "v${version}"; - sha256 = "0sy3p4ibgqx67hzn1f254jh8070a8kl9g2la62p3c74k2x7p0r7f"; + sha256 = "Z4KHB3Pv4wZPou/Vbp1DFDgDp47OTDfVChGP55GtIJE="; name = "${pname}-${version}-source"; }; + patches = [ + ./tag-date.patch + ]; + buildPhase = '' ${python.pythonForBuild.interpreter} bootstrap.py ${python.pythonForBuild.interpreter} setup.py sdist --formats=gztar + + # Here we untar the sdist and retar it in order to control the timestamps + # of all the files included + tar -xzf dist/${pname}-${version}.post0.tar.gz -C dist/ + tar -czf dist/${name} -C dist/ --mtime="@$SOURCE_DATE_EPOCH" ${pname}-${version}.post0 ''; installPhase = '' echo "Moving sdist..." - mv dist/*.tar.gz $out + mv dist/${name} $out ''; }; in buildPythonPackage rec { diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/tag-date.patch b/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/tag-date.patch new file mode 100644 index 000000000000..441177a5d17e --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/setuptools/tag-date.patch @@ -0,0 +1,12 @@ +diff --git a/setup.cfg b/setup.cfg +index f23714b6..8aaeb330 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -1,6 +1,6 @@ + [egg_info] + tag_build = .post +-tag_date = 1 ++tag_date = 0 + + [aliases] + clean_egg_info = egg_info -Db '' |