@@ -1,31 +1,23 @@
1−{ lib
2−, buildPythonPackage
3−, clikit
4−, fetchFromGitHub
5−, poetry-core
6−, pytestCheckHook
7−, pytest-mock
8−}:
1+{ lib, buildPythonPackage, fetchPypi
2+, clikit }:
93
104buildPythonPackage rec {
115 pname = "cleo";
12− version = "1.0.0a4";
13− format = "pyproject";
6+ version = "0.8.1";
147
15− src = fetchFromGitHub {
16− owner = "sdispater";
17− repo = pname;
18− rev = version;
19− hash = "sha256-w4WzGK7Q055iPF5wkpVXHoHvwr8ewKDqDUPCdoGhAQ0=";
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "3d0e22d30117851b45970b6c14aca4ab0b18b1b53c8af57bed13208147e4069f";
2011 };
2112
22− propagatedBuildInputs = [ clikit poetry-core ];
13+ propagatedBuildInputs = [
14+ clikit
15+ ];
2316
24− doCheck = true;
25−
26− checkInputs = [ pytestCheckHook pytest-mock ];
27−
28− pythonImportsCheck = [ "cleo" ];
17+ # The Pypi tarball doesn't include tests, and the GitHub source isn't
18+ # buildable until we bootstrap poetry, see
19+ # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
20+ doCheck = false;
2921
3022 meta = with lib; {
3123 homepage = "https://github.com/sdispater/cleo";