2024-04-21 15:54:59 +00:00
|
|
|
{ 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
|
2024-05-15 15:35:15 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3.9") graphlib-backport;
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|