nixpkgs/pkgs/development/python-modules/exdown/default.nix
2021-02-02 14:46:05 +01:00

24 lines
630 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, importlib-metadata }:
buildPythonPackage rec {
pname = "exdown";
version = "0.7.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-vnSso3vmPIjX7JX+NwoxguwqwPHocJACeh5H0ClPcUI=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
pythonImportsCheck = [ "exdown" ];
meta = with lib; {
description = "Extract code blocks from markdown";
homepage = "https://github.com/nschloe/exdown";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}