nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.sphinx-material: add format

- disable on unsupported Python releases

authored by

Fabian Affolter and committed by
GitHub
e7ceccbb 84fbdb52

+13 -7
+13 -7
pkgs/development/python-modules/sphinx-material/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 - , sphinx 5 2 , beautifulsoup4 6 - , python-slugify 7 - , unidecode 3 + , buildPythonPackage 8 4 , css-html-js-minify 5 + , fetchPypi 9 6 , lxml 7 + , python-slugify 8 + , pythonOlder 9 + , sphinx 10 + , unidecode 10 11 }: 11 12 12 13 buildPythonPackage rec { 13 14 pname = "sphinx-material"; 14 15 version = "0.0.36"; 16 + format = "setuptools"; 17 + 18 + disabled = pythonOlder "3.7"; 15 19 16 20 src = fetchPypi { 17 21 pname = "sphinx_material"; 18 22 inherit version; 19 - sha256 = "sha256-7v9ffT3AFq8yuv33DGbmcdFch1Tb4GE9+9Yp++2RKGk="; 23 + hash = "sha256-7v9ffT3AFq8yuv33DGbmcdFch1Tb4GE9+9Yp++2RKGk="; 20 24 }; 21 25 22 26 propagatedBuildInputs = [ ··· 34 30 35 31 doCheck = false; # no tests 36 32 37 - pythonImportsCheck = [ "sphinx_material" ]; 33 + pythonImportsCheck = [ 34 + "sphinx_material" 35 + ]; 38 36 39 37 meta = with lib; { 40 38 description = "A material-based, responsive theme inspired by mkdocs-material";