1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 # Python deps
6 frozenlist2,
7 python-secp256k1-cardano,
8 setuptools,
9 poetry-core,
10 frozendict,
11 cbor2,
12 rply,
13 pycardano,
14}:
15
16buildPythonPackage rec {
17 pname = "uplc";
18 version = "1.0.7";
19
20 format = "pyproject";
21
22 src = fetchFromGitHub {
23 owner = "OpShin";
24 repo = "uplc";
25 tag = version;
26 hash = "sha256-xK2k0XLybWqyP5Qa2Oby8YBgiiswR++yVK7NPgpdSa0=";
27 };
28
29 propagatedBuildInputs = [
30 setuptools
31 poetry-core
32 frozendict
33 cbor2
34 frozenlist2
35 rply
36 pycardano
37 python-secp256k1-cardano
38 ];
39
40 pythonImportsCheck = [ "uplc" ];
41
42 meta = with lib; {
43 description = "Python implementation of untyped plutus language core";
44 homepage = "https://github.com/OpShin/uplc";
45 license = licenses.mit;
46 maintainers = with maintainers; [ t4ccer ];
47 mainProgram = "opshin";
48 };
49}