python3.pkgs.puremagic: init at 1.10

This commit is contained in:
Robin Gloster 2021-05-09 10:49:11 -05:00
parent f369a5a03b
commit 6d29a1a1cd
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ lib, buildPythonPackage, fetchPypi
}:
buildPythonPackage rec {
pname = "puremagic";
version = "1.10";
src = fetchPypi {
inherit pname version;
sha256 = "025ih5q1qa40x88j7ngsdr5sf0dp400kwlfzz60i7v6fh0ms1zkg";
};
postPatch = ''
substituteInPlace setup.py \
--replace '"argparse"' ""
'';
# test data not included on pypi
doCheck = false;
pythonImportsCheck = [ "puremagic" ];
meta = with lib; {
description = "Pure python implementation of magic file detection";
license = licenses.mit;
homepage = "https://github.com/cdgriffith/puremagic";
maintainers = with maintainers; [ globin ];
};
}

View file

@ -5275,6 +5275,8 @@ in {
pure-python-adb-homeassistant = callPackage ../development/python-modules/pure-python-adb-homeassistant { };
puremagic = callPackage ../development/python-modules/puremagic { };
purl = callPackage ../development/python-modules/purl { };
pushbullet = callPackage ../development/python-modules/pushbullet { };