depot/third_party/nixpkgs/pkgs/development/python-modules/puremagic/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

37 lines
835 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "puremagic";
version = "1.27";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cdgriffith";
repo = "puremagic";
rev = "refs/tags/${version}";
hash = "sha256-93akHgfkNbYGDJxXXJTk9yobvpiycqdroVBEeOzDiFQ=";
};
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 ];
};
}