mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
36 lines
819 B
Nix
36 lines
819 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
pname = "md-tangle";
|
|
version = "2.1.2";
|
|
pyproject = true;
|
|
|
|
# By some strange reason, fetchPypi fails miserably
|
|
src = fetchFromGitHub {
|
|
owner = "joakimmj";
|
|
repo = "md-tangle";
|
|
tag = "v${version}";
|
|
hash = "sha256-3lHPYfIXfS/iilY2ZW/EOKiI1hkRWaDoqbxSmntsZNo=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
# Pure Python application, uses only standard modules and comes without
|
|
# testing suite
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "md_tangle" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/joakimmj/md-tangle/";
|
|
description = "Generates (\"tangles\") source code from Markdown documents";
|
|
mainProgram = "md-tangle";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|