depot/third_party/nixpkgs/pkgs/development/python-modules/pluthon/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
811 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pythonOlder,
# Python deps
uplc,
graphlib-backport,
ordered-set,
}:
buildPythonPackage rec {
pname = "pluthon";
version = "1.0.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "OpShin";
repo = "pluthon";
rev = version;
hash = "sha256-IYpkb/RXRu53HoeVKik7Jog5FyXwrWItrxSla9dN0s4=";
};
propagatedBuildInputs = [
setuptools
uplc
ordered-set
] ++ lib.optional (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 ];
};
}