python3.pkgs.typecode: init at 21.2.24

This commit is contained in:
Cole Helbling 2021-04-19 20:43:45 -07:00
parent f72f9ff624
commit 4455989424
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{ lib
, fetchPypi
, buildPythonPackage
, setuptools-scm
, attrs
, pdfminer
, commoncode
, plugincode
, binaryornot
, typecode-libmagic
, pytestCheckHook
, pytest-xdist
}:
buildPythonPackage rec {
pname = "typecode";
version = "21.2.24";
src = fetchPypi {
inherit pname version;
sha256 = "eaac8aee0b9c6142ad44671252ba00748202d218347d1c0451ce6cd76561e01b";
};
dontConfigure = true;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
attrs
pdfminer
commoncode
plugincode
binaryornot
typecode-libmagic
];
checkInputs = [
pytestCheckHook
pytest-xdist
];
pythonImportsCheck = [
"typecode"
];
meta = with lib; {
description = "Comprehensive filetype and mimetype detection using libmagic and Pygments";
homepage = "https://github.com/nexB/typecode";
license = licenses.asl20;
maintainers = teams.determinatesystems.members;
};
}

View file

@ -8722,6 +8722,8 @@ in {
txtorcon = callPackage ../development/python-modules/txtorcon { };
typecode = callPackage ../development/python-modules/typecode { };
typed-ast = callPackage ../development/python-modules/typed-ast { };
typeguard = callPackage ../development/python-modules/typeguard { };