Merge pull request #164677 from lovesegfault/update-cleo

python3Packages.cleo: 0.8.1 -> 1.0.0a4
This commit is contained in:
Bernardo Meurer 2022-03-21 16:46:33 -07:00 committed by GitHub
commit 35e23aa9dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,31 @@
{ lib, buildPythonPackage, fetchPypi
, clikit }:
{ lib
, buildPythonPackage
, clikit
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pytest-mock
}:
buildPythonPackage rec {
pname = "cleo";
version = "0.8.1";
version = "1.0.0a4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "3d0e22d30117851b45970b6c14aca4ab0b18b1b53c8af57bed13208147e4069f";
src = fetchFromGitHub {
owner = "sdispater";
repo = pname;
rev = version;
hash = "sha256-w4WzGK7Q055iPF5wkpVXHoHvwr8ewKDqDUPCdoGhAQ0=";
};
propagatedBuildInputs = [
clikit
];
propagatedBuildInputs = [ clikit poetry-core ];
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
doCheck = true;
checkInputs = [ pytestCheckHook pytest-mock ];
pythonImportsCheck = [ "cleo" ];
meta = with lib; {
homepage = "https://github.com/sdispater/cleo";