Merge pull request #55009 from dotlambda/papis-0.7.5

papis: 0.6 -> 0.7.5
This commit is contained in:
Robert Schütz
2019-02-02 12:08:21 +01:00
committed by GitHub
5 changed files with 103 additions and 34 deletions

View File

@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "filetype";
version = "1.0.2";
# No tests in PyPI tarball
# See https://github.com/h2non/filetype.py/pull/33
src = fetchFromGitHub {
owner = "h2non";
repo = "filetype.py";
rev = "v${version}";
sha256 = "000gl3q2cadfnmqnbxg31ppc3ak8blzb4nfn75faxbp7b6r5qgr2";
};
checkPhase = ''
${python.interpreter} -m unittest discover
'';
meta = with lib; {
description = "Infer file type and MIME type of any file/buffer";
homepage = https://github.com/h2non/filetype.py;
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, coverage
}:
buildPythonPackage rec {
pname = "isbnlib";
version = "3.9.4";
# PyPI tarball is missing LICENSE file
# See https://github.com/xlcnd/isbnlib/pull/53
src = fetchFromGitHub {
owner = "xlcnd";
repo = "isbnlib";
rev = "v${version}";
sha256 = "0gc0k5khf34b4zz56a9zc3rscdhj3bx849lbzgmzpji30sbyy1fh";
};
checkInputs = [
nose
coverage
];
# requires network connection
doCheck = false;
meta = with lib; {
description = "Extract, clean, transform, hyphenate and metadata for ISBNs";
homepage = https://github.com/xlcnd/isbnlib;
license = licenses.lgpl3;
maintainers = with maintainers; [ dotlambda ];
};
}