python3.pkgs.puremagic: init at 1.10

launchpad/nixpkgs/master
Robin Gloster 3 years ago
parent f369a5a03b
commit 6d29a1a1cd
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF
  1. 29
      pkgs/development/python-modules/puremagic/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

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

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

Loading…
Cancel
Save