0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00
nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
847 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "asyncinotify";
version = "4.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "absperf";
repo = "asyncinotify";
tag = "v${version}";
hash = "sha256-RHzjUoVhDxI7kYD5HWkb0f8X6BjjTTCAvSvASPy6FGk=";
};
build-system = [ flit-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "asyncinotify" ];
pytestFlagsArray = [ "test.py" ];
meta = with lib; {
description = "Module for inotify";
homepage = "https://github.com/absperf/asyncinotify/";
changelog = "https://github.com/absperf/asyncinotify/releases/tag/v${version}";
license = licenses.mpl20;
maintainers = with maintainers; [ cynerd ];
};
}