mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
python3Packages.uplc: 1.0.7 -> 1.0.10
This commit is contained in:
parent
5eed3e10c5
commit
c0ff075e47
1 changed files with 13 additions and 2 deletions
|
@ -8,14 +8,16 @@
|
|||
setuptools,
|
||||
poetry-core,
|
||||
frozendict,
|
||||
cbor2WithoutCExtensions,
|
||||
cbor2,
|
||||
rply,
|
||||
pycardano,
|
||||
uplc,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "uplc";
|
||||
version = "1.0.7";
|
||||
version = "1.0.10";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
|
@ -23,7 +25,7 @@ buildPythonPackage rec {
|
|||
owner = "OpShin";
|
||||
repo = "uplc";
|
||||
tag = version;
|
||||
hash = "sha256-xK2k0XLybWqyP5Qa2Oby8YBgiiswR++yVK7NPgpdSa0=";
|
||||
hash = "sha256-Owo4W4jChrdYnz11BbWQdm2SiwFwOJlqjYutuRyjpxs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -37,8 +39,17 @@ buildPythonPackage rec {
|
|||
python-secp256k1-cardano
|
||||
];
|
||||
|
||||
# Support cbor2 without C extensions
|
||||
postPatch = lib.optionalString (!cbor2.withCExtensions) ''
|
||||
substituteInPlace uplc/ast.py --replace-fail 'from _cbor2' 'from cbor2'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "uplc" ];
|
||||
|
||||
passthru.tests.withoutCExtensions = uplc.override {
|
||||
cbor2 = cbor2WithoutCExtensions;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation of untyped plutus language core";
|
||||
homepage = "https://github.com/OpShin/uplc";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue