lol

python3Packages.confuse: enable tests

+26 -6
+26 -6
pkgs/development/python-modules/confuse/default.nix
··· 1 1 { buildPythonPackage 2 2 , enum34 3 - , fetchPypi 3 + , fetchFromGitHub 4 + , flit-core 4 5 , isPy27 5 6 , lib 6 7 , pathlib 7 8 , pyyaml 9 + , pytestCheckHook 8 10 }: 9 11 10 12 buildPythonPackage rec { 11 13 pname = "confuse"; 12 14 version = "1.5.0"; 15 + format = "flit"; 13 16 14 - src = fetchPypi { 15 - inherit pname version; 16 - sha256 = "sha256-kvvKHHBhESDqciNy4MBxwNNCp195a0veS/A0jqSfAi4="; 17 + src = fetchFromGitHub { 18 + owner = "beetbox"; 19 + repo = pname; 20 + rev = "v${version}"; 21 + sha256 = "1kvilxhjifvz6ra64jadf9jiwphrah5rcb9ryq0v7w1dywgn4qp7"; 17 22 }; 18 23 19 - propagatedBuildInputs = [ pyyaml ] ++ lib.optionals isPy27 [ enum34 pathlib ] ; 24 + nativeBuildInputs = [ 25 + flit-core 26 + ]; 27 + 28 + propagatedBuildInputs = [ 29 + pyyaml 30 + ] ++ lib.optionals isPy27 [ 31 + enum34 32 + pathlib 33 + ] ; 34 + 35 + checkInputs = [ 36 + pytestCheckHook 37 + ]; 38 + 39 + pythonImportsCheck = [ "confuse" ]; 20 40 21 41 meta = with lib; { 22 - description = "Confuse is a configuration library for Python that uses YAML."; 42 + description = "Python configuration library for Python that uses YAML"; 23 43 homepage = "https://github.com/beetbox/confuse"; 24 44 license = licenses.mit; 25 45 maintainers = with maintainers; [ lovesegfault ];