lol

python312Packages.pycomposefile: refactor

+14 -8
+14 -8
pkgs/development/python-modules/pycomposefile/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , setuptools 5 4 , pyyaml 6 - , twine 5 + , pythonOlder 6 + , setuptools 7 7 }: 8 8 9 9 buildPythonPackage rec { 10 10 pname = "pycomposefile"; 11 11 version = "0.0.31"; 12 - format = "setuptools"; 12 + pyproject = true; 13 + 14 + disabled = pythonOlder "3.8"; 13 15 14 16 src = fetchPypi { 15 17 inherit pname version; 16 - extension = "tar.gz"; 17 18 hash = "sha256-SYul81giQLUM1FdgfabKJyrbSu4xdoaWblcE87ZbBwg="; 18 19 }; 19 20 20 - nativeBuildInput = [ 21 + build-system = [ 21 22 setuptools 22 23 ]; 23 24 24 - propagatedBuildInputs = [ 25 + dependencies = [ 25 26 pyyaml 26 - twine 27 27 ]; 28 28 29 - doCheck = false; # tests are broken 29 + # Tests are broken 30 + doCheck = false; 31 + 32 + pythonImportsCheck = [ 33 + "pycomposefile" 34 + ]; 30 35 31 36 meta = with lib; { 32 37 description = "Python library for structured deserialization of Docker Compose files"; 33 38 homepage = "https://github.com/smurawski/pycomposefile"; 39 + changelog = "https://github.com/smurawski/pycomposefile/releases/tag/v${version}"; 34 40 license = licenses.mit; 35 41 maintainers = with maintainers; [ mdarocha ]; 36 42 };