about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/op/opshin/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/op/opshin/package.nix')
-rw-r--r--nixpkgs/pkgs/by-name/op/opshin/package.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/op/opshin/package.nix b/nixpkgs/pkgs/by-name/op/opshin/package.nix
new file mode 100644
index 000000000000..12fd3671cfee
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/op/opshin/package.nix
@@ -0,0 +1,37 @@
+{ lib
+, fetchFromGitHub
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "opshin";
+  version = "0.20.0";
+
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "OpShin";
+    repo = "opshin";
+    rev = version;
+    hash = "sha256-fJlPeVAuEf80FVxdXnaKASLmjMEgz6ysXenUY72+sos=";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    setuptools
+    poetry-core
+    uplc
+    pluthon
+    pycardano
+    frozenlist2
+    astunparse
+    ordered-set
+  ];
+
+  meta = with lib; {
+    description = "A simple pythonic programming language for Smart Contracts on Cardano";
+    homepage = "https://opshin.dev";
+    license = licenses.mit;
+    maintainers = with maintainers; [ t4ccer ];
+    mainProgram = "opshin";
+  };
+}