python310Packages.send2trash: 1.8.1b0 -> 1.8.2

Diff: https://github.com/hsoft/send2trash/compare/refs/tags/1.8.1b0...1.8.2

Changelog: https://github.com/arsenetar/send2trash/blob/1.8.2/CHANGES.rst
This commit is contained in:
natsukium 2023-09-02 23:22:05 +09:00
parent e48238ad90
commit cdefa95fbf
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -7,25 +7,16 @@
buildPythonPackage rec {
pname = "Send2Trash";
version = "1.8.1b0";
version = "1.8.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "hsoft";
repo = "send2trash";
rev = "refs/tags/${version}";
hash = "sha256-kDUEfyMTk8CXSxTEi7E6kl09ohnWHeaoif+EIaIJh9Q=";
hash = "sha256-p0Pd9g+nLoT+oruthwjBn2E9rznvcx35VmzOAce2iTY=";
};
postPatch = ''
# Confuses setuptools validation
# setuptools.extern.packaging.requirements.InvalidRequirement: One of the parsed requirements in `extras_require[win32]` looks like a valid environment marker: 'sys_platform == "win32"'
sed -i '/win32 =/d' setup.cfg
# setuptools.extern.packaging.requirements.InvalidRequirement: One of the parsed requirements in `extras_require[objc]` looks like a valid environment marker: 'sys_platform == "darwin"'
sed -i '/objc =/d' setup.cfg
'';
nativeBuildInputs = [
setuptools
];