Merge pull request #146907 from fabaff/bump-pkginfo
python3Packages.pkginfo: 1.7.1 -> 1.8.1
This commit is contained in:
commit
d3724b5aa0
@ -1,21 +1,30 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pkginfo";
|
||||
version = "1.7.1";
|
||||
version = "1.8.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e7432f81d08adec7297633191bbf0bd47faf13cd8724c3a13250e51d542635bd";
|
||||
sha256 = "sha256-ZRdf+iyAciBnOkHDcVc6yaHqGxn/1e75FiePQoMZk08=";
|
||||
};
|
||||
|
||||
doCheck = false; # I don't know why, but with doCheck = true it fails.
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pkginfo"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pypi.python.org/pypi/pkginfo";
|
||||
license = licenses.mit;
|
||||
description = "Query metadatdata from sdists / bdists / installed packages";
|
||||
|
||||
description = "Query metadatdata from sdists, bdists or installed packages";
|
||||
homepage = "https://pythonhosted.org/pkginfo/";
|
||||
longDescription = ''
|
||||
This package provides an API for querying the distutils metadata
|
||||
written in the PKG-INFO file inside a source distriubtion (an sdist)
|
||||
@ -24,5 +33,7 @@ buildPythonPackage rec {
|
||||
*.egg-info stored in a “development checkout” (e.g, created by running
|
||||
setup.py develop).
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
@ -1,12 +1,29 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, click
|
||||
, click-completion, factory_boy, faker, inquirer, notify-py, pbr, pendulum
|
||||
, ptable, pytestCheckHook, pytest-cov, pytest-mock, requests, twine
|
||||
, validate-email }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, click-completion
|
||||
, factory_boy
|
||||
, faker
|
||||
, fetchPypi
|
||||
, inquirer
|
||||
, notify-py
|
||||
, pbr
|
||||
, pendulum
|
||||
, ptable
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, twine
|
||||
, validate-email
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "toggl-cli";
|
||||
version = "2.4.2";
|
||||
disabled = pythonOlder "3.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "togglCli";
|
||||
@ -14,14 +31,39 @@ buildPythonPackage rec {
|
||||
sha256 = "1wgh231r16jyvaj1ch1pajvl9szflb4srs505pfdwdlqvz7rzww8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pbr
|
||||
twine
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
click-completion
|
||||
inquirer
|
||||
notify-py
|
||||
pbr
|
||||
pendulum
|
||||
ptable
|
||||
requests
|
||||
validate-email
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
faker
|
||||
factory_boy
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "notify-py==0.3.1" "notify-py>=0.3.1"
|
||||
--replace "notify-py==0.3.1" "notify-py>=0.3.1" \
|
||||
--replace "click==7.1.2" "click>=7.1.2" \
|
||||
--replace "pbr==5.5.1" "pbr>=5.5.1"
|
||||
substituteInPlace pytest.ini \
|
||||
--replace ' --cov toggl -m "not premium"' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pbr twine ];
|
||||
checkInputs = [ pbr pytestCheckHook pytest-cov pytest-mock faker factory_boy ];
|
||||
|
||||
preCheck = ''
|
||||
export TOGGL_API_TOKEN=your_api_token
|
||||
export TOGGL_PASSWORD=toggl_password
|
||||
@ -36,22 +78,14 @@ buildPythonPackage rec {
|
||||
"test_now"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
click-completion
|
||||
inquirer
|
||||
notify-py
|
||||
pendulum
|
||||
ptable
|
||||
requests
|
||||
pbr
|
||||
validate-email
|
||||
pythonImportsCheck = [
|
||||
"toggl"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://toggl.uhlir.dev/";
|
||||
description = "Command line tool and set of Python wrapper classes for interacting with toggl's API";
|
||||
homepage = "https://toggl.uhlir.dev/";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mmahut ];
|
||||
maintainers = with maintainers; [ mmahut ];
|
||||
};
|
||||
}
|
||||
|
@ -15,6 +15,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "typecode";
|
||||
version = "21.6.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -43,6 +44,8 @@ buildPythonPackage rec {
|
||||
|
||||
disabledTests = [
|
||||
"TestFileTypesDataDriven"
|
||||
# AssertionError: assert 'application/x-bytecode.python'...
|
||||
"test_compiled_python_1"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
Loading…
Reference in New Issue
Block a user