Unverified Commit c296124e authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #328696 from Sigmanificient/hikari-crescent-1-0

python312Packages.{hikari: 2.0.0.dev125 -> 2.0.0.dev126, hikari-crescent: 0.6.6 -> 1.0.0}
parents da6d061b 4df73f99
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -14,14 +14,14 @@

buildPythonPackage rec {
  pname = "hikari-crescent";
  version = "0.6.6";
  version = "1.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hikari-crescent";
    repo = "hikari-crescent";
    rev = "refs/tags/v${version}";
    hash = "sha256-PZAmz7Wofg6jnF25p/8leJQ9PeZaE3q5q2GUJG7NEB0=";
    hash = "sha256-0eDPdN+3lalgHiBNXuZUEJllAKFxdKK6paTFNHU5jIM=";
  };

  build-system = [ poetry-core ];
+5 −4
Original line number Diff line number Diff line
@@ -17,13 +17,13 @@
}:
buildPythonPackage rec {
  pname = "hikari";
  version = "2.0.0.dev125";
  version = "2.0.0.dev126";

  src = fetchFromGitHub {
    owner = "hikari-py";
    repo = "hikari";
    rev = version;
    hash = "sha256-qxgIYquXUWrm8bS8EamERMHOnjI2aPyK7bQieVG66uA=";
    hash = "sha256-KpF9P92IciILV7zlYTCgtMqhudT9uOR2SQJdWDtxYaA=";
    # The git commit is part of the `hikari.__git_sha1__` original output;
    # leave that output the same in nixpkgs. Use the `.git` directory
    # to retrieve the commit SHA, and remove the directory afterwards,
@@ -64,7 +64,8 @@ buildPythonPackage rec {
  disabled = pythonOlder "3.7";

  postPatch = ''
    substituteInPlace hikari/_about.py --replace "__git_sha1__: typing.Final[str] = \"HEAD\"" "__git_sha1__: typing.Final[str] = \"$(cat $src/COMMIT)\""
    substituteInPlace hikari/_about.py \
      --replace-fail "__git_sha1__: typing.Final[str] = \"HEAD\"" "__git_sha1__: typing.Final[str] = \"$(cat $src/COMMIT)\""
  '';

  meta = with lib; {
@@ -72,6 +73,6 @@ buildPythonPackage rec {
    homepage = "https://www.hikari-py.dev/";
    changelog = "https://github.com/hikari-py/hikari/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ tomodachi94 ];
    maintainers = with maintainers; [ tomodachi94 sigmanificient ];
  };
}