depot/third_party/nixpkgs/pkgs/development/python-modules/puremagic/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
835 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "puremagic";
version = "1.24";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cdgriffith";
repo = "puremagic";
rev = "refs/tags/${version}";
hash = "sha256-omVSSxMAQQm+Sy023xIGBYm55qrb1dbds1Jj9WCtNfw=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "puremagic" ];
meta = with lib; {
description = "Implementation of magic file detection";
homepage = "https://github.com/cdgriffith/puremagic";
changelog = "https://github.com/cdgriffith/puremagic/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ globin ];
};
}