depot/third_party/nixpkgs/pkgs/development/python-modules/puremagic/default.nix

38 lines
835 B
Nix
Raw Normal View History

{
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 ];
};
}