about summary refs log tree commit diff
path: root/pkgs/development/python-modules/samarium/default.nix
blob: a2b637c620a52f504e08c4213cd3d4036b851d67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  crossandra,
  dahlia,
  pythonRelaxDepsHook
}:

buildPythonPackage rec {
  pname = "samarium";
  version = "0.5.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "samarium-lang";
    repo = "samarium";
    rev = "refs/tags/${version}";
    hash = "sha256-4WVkTLE6OboNJE/f+6zS3xT1jEHUwV4HSLjl/PBP0FU=";
  };

  build-system = [ poetry-core pythonRelaxDepsHook ];
  dependencies = [ crossandra dahlia ];

  patches = [ ./crossandra-2-fix.patch ];
  pythonRelaxDeps = [ "crossandra" ];

  meta = with lib; {
    changelog = "https://github.com/samarium-lang/samarium/blob/${src.rev}/CHANGELOG.md";
    description = "The Samarium Programming Language";
    license = licenses.mit;
    homepage = "https://samarium-lang.github.io/Samarium";
    maintainers = with maintainers; [ sigmanificient ];
  };
}