git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.cleo: 0.8.1 -> 1.0.0a4
commit286c04bcbf54ed52e3de28a6a033a4be61e16a01 authorBernardo Meurer <bernardo@meurer.org> dateThu 17 Mar 2022, 23:11 (5 years ago) parentc12cec8
1 file changed+21−13
pkgs/development/python-modules/cleo/default.nix+21−13
pkgs/development/python-modules/cleo/default.nix+21−13
@@ -1,23 +1,31 @@
1−{ lib, buildPythonPackage, fetchPypi
2−, clikit }:
1+{ lib
2+, buildPythonPackage
3+, clikit
4+, fetchFromGitHub
5+, poetry-core
6+, pytestCheckHook
7+, pytest-mock
8+}:
39
410buildPythonPackage rec {
511 pname = "cleo";
6− version = "0.8.1";
12+ version = "1.0.0a4";
13+ format = "pyproject";
714
8− src = fetchPypi {
9− inherit pname version;
10− sha256 = "3d0e22d30117851b45970b6c14aca4ab0b18b1b53c8af57bed13208147e4069f";
15+ src = fetchFromGitHub {
16+ owner = "sdispater";
17+ repo = pname;
18+ rev = version;
19+ hash = "sha256-w4WzGK7Q055iPF5wkpVXHoHvwr8ewKDqDUPCdoGhAQ0=";
1120 };
1221
13− propagatedBuildInputs = [
14− clikit
15− ];
22+ propagatedBuildInputs = [ clikit poetry-core ];
1623
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;
24+ doCheck = true;
25+
26+ checkInputs = [ pytestCheckHook pytest-mock ];
27+
28+ pythonImportsCheck = [ "cleo" ];
2129
2230 meta = with lib; {
2331 homepage = "https://github.com/sdispater/cleo";