depot/third_party/nixpkgs/pkgs/development/python-modules/exdown/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +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 ];
};
}