Files
nixpkgs/pkgs/development/python-modules/puremagic/default.nix
T
2024-02-07 05:25:03 +00:00

38 lines
791 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "puremagic";
version = "1.20";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cdgriffith";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Iyf/Vf1uqdtHlaP9Petpp88aIGCGmHu//cH6bindL6c=";
};
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 ];
};
}