nixpkgs/pkgs/development/python-modules/pyinotify/default.nix
Robert James Hernandez 7ea81e0362 pyinotify: patch to skip asyncore for python 3.12+
asyncore was removed from the python 3.12 standard library:
https://peps.python.org/pep-0594/

This patch was original sourced from:
https://github.com/seb-m/pyinotify/pull/205
2024-07-09 00:38:11 +00:00

31 lines
630 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "pyinotify";
version = "0.9.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw";
};
patches = [ ./skip-asyncore-python-3.12.patch ];
# No tests distributed
doCheck = false;
pythonImportsCheck = [ "pyinotify" ];
meta = with lib; {
homepage = "https://github.com/seb-m/pyinotify/wiki";
description = "Monitor filesystems events on Linux platforms with inotify";
license = licenses.mit;
platforms = platforms.linux;
};
}