lol

python312Packages.pycomposefile: refactor

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