python3Packages.pluthon: init at 0.4.6

This commit is contained in:
t4ccer 2024-02-24 14:40:05 -07:00
parent b7f2456a07
commit f6d41f4b23
No known key found for this signature in database
GPG Key ID: 19E5A2D8B1E43F19
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools
, pythonOlder
# Python deps
, uplc
, graphlib-backport
, ordered-set
}:
buildPythonPackage rec {
pname = "pluthon";
version = "0.4.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "OpShin";
repo = "pluthon";
rev = version;
hash = "sha256-ZmBkbglSbBfVhA4yP0tJdwpJiFpJ7vX0A321ldQF0lA=";
};
propagatedBuildInputs = [
setuptools
uplc
ordered-set
] ++ lib.optionals (pythonOlder "3.9") graphlib-backport;
pythonImportsCheck = [ "pluthon" ];
meta = with lib; {
description = "Pluto-like programming language for Cardano Smart Contracts in Python";
homepage = "https://github.com/OpShin/pluthon";
license = licenses.mit;
maintainers = with maintainers; [ t4ccer ];
};
}

View File

@ -9816,6 +9816,8 @@ self: super: with self; {
plumbum = callPackage ../development/python-modules/plumbum { };
pluthon = callPackage ../development/python-modules/pluthon { };
plux = callPackage ../development/python-modules/plux { };
ply = callPackage ../development/python-modules/ply { };