mallard-ducktype: init at 1.0.2

This commit is contained in:
Martin Weinelt 2025-01-27 20:21:41 +01:00
parent 678b4f01a6
commit 6bd5780275
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{ python3 }:
with python3.pkgs;
toPythonApplication mallard-ducktype

View file

@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "mallard-ducktype";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "projectmallard";
repo = "mallard-ducktype";
tag = version;
hash = "sha256-jHjzTBBRBh//bOrdnyCRmZRmpupgDaDRuZGAd75baco=";
};
build-system = [ setuptools ];
checkPhase = ''
runHook preCheck
pushd tests
./runtests
popd
runHook postCheck
'';
pythonImportsCheck = [ "mallard" ];
meta = {
description = "Parser for the lightweight Ducktype syntax for Mallard";
homepage = "https://github.com/projectmallard/mallard-ducktype";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}

View file

@ -7863,6 +7863,8 @@ self: super: with self; {
malduck = callPackage ../development/python-modules/malduck { };
mallard-ducktype = callPackage ../development/python-modules/mallard-ducktype { };
mammoth = callPackage ../development/python-modules/mammoth { };
mamba-ssm = callPackage ../development/python-modules/mamba-ssm { };