Loading pkgs/applications/version-management/sourcehut/default.nix +0 −71 Original line number Diff line number Diff line Loading @@ -5,8 +5,6 @@ recurseIntoAttrs, nixosTests, config, fetchPypi, fetchpatch, }: # To expose the *srht modules, they have to be a python module so we use `buildPythonModule` Loading @@ -29,75 +27,6 @@ let todosrht = self.callPackage ./todo.nix { }; scmsrht = self.callPackage ./scm.nix { }; # sourcehut is not (yet) compatible with SQLAlchemy 2.x sqlalchemy = super.sqlalchemy_1_4; # sourcehut is not (yet) compatible with flask-sqlalchemy 3.x flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (oldAttrs: rec { version = "2.5.1"; format = "setuptools"; src = fetchPypi { pname = "Flask-SQLAlchemy"; inherit version; hash = "sha256-K9pEtD58rLFdTgX/PMH4vJeTbMRkYjQkECv8LDXpWRI="; }; propagatedBuildInputs = with self; [ flask sqlalchemy ]; disabledTests = [ "test_persist_selectable" ]; }); # flask-sqlalchemy 2.x requires flask 2.x flask = super.flask.overridePythonAttrs (oldAttrs: rec { version = "2.3.3"; src = fetchPypi { inherit (oldAttrs) pname; inherit version; hash = "sha256-CcNHqSqn/0qOfzIGeV8w2CZlS684uHPQdEzVccpgnvw="; }; }); # flask 2.x requires werkzeug 2.x werkzeug = super.werkzeug.overridePythonAttrs (oldAttrs: rec { version = "2.3.8"; src = fetchPypi { inherit (oldAttrs) pname; inherit version; hash = "sha256-VUslfHS763oNJUFgpPj/4YUkP1KlIDUGC3Ycpi2XfwM="; }; # Fixes a test failure with Pytest 8 patches = (oldAttrs.patches or [ ]) ++ [ (fetchpatch { url = "https://github.com/pallets/werkzeug/commit/4e5bdca7f8227d10cae828f8064fb98190ace4aa.patch"; hash = "sha256-83doVvfdpymlAB0EbfrHmuoKE5B2LJbFq+AY2xGpnl4="; }) ]; nativeCheckInputs = oldAttrs.nativeCheckInputs or [ ] ++ [ self.pytest-xprocess ]; }); # sourcehut is not (yet) compatible with factory-boy 3.x factory-boy = super.factory-boy.overridePythonAttrs (oldAttrs: rec { version = "2.12.0"; src = fetchPypi { pname = "factory_boy"; inherit version; hash = "sha256-+vSNYIoXNfDQo8nL9TbWT5EytUfa57pFLE2Zp56Eo3A="; }; nativeCheckInputs = (with super; [ django mongoengine pytestCheckHook ]) ++ (with self; [ sqlalchemy flask flask-sqlalchemy ]); postPatch = ""; }); }; }; in Loading Loading
pkgs/applications/version-management/sourcehut/default.nix +0 −71 Original line number Diff line number Diff line Loading @@ -5,8 +5,6 @@ recurseIntoAttrs, nixosTests, config, fetchPypi, fetchpatch, }: # To expose the *srht modules, they have to be a python module so we use `buildPythonModule` Loading @@ -29,75 +27,6 @@ let todosrht = self.callPackage ./todo.nix { }; scmsrht = self.callPackage ./scm.nix { }; # sourcehut is not (yet) compatible with SQLAlchemy 2.x sqlalchemy = super.sqlalchemy_1_4; # sourcehut is not (yet) compatible with flask-sqlalchemy 3.x flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (oldAttrs: rec { version = "2.5.1"; format = "setuptools"; src = fetchPypi { pname = "Flask-SQLAlchemy"; inherit version; hash = "sha256-K9pEtD58rLFdTgX/PMH4vJeTbMRkYjQkECv8LDXpWRI="; }; propagatedBuildInputs = with self; [ flask sqlalchemy ]; disabledTests = [ "test_persist_selectable" ]; }); # flask-sqlalchemy 2.x requires flask 2.x flask = super.flask.overridePythonAttrs (oldAttrs: rec { version = "2.3.3"; src = fetchPypi { inherit (oldAttrs) pname; inherit version; hash = "sha256-CcNHqSqn/0qOfzIGeV8w2CZlS684uHPQdEzVccpgnvw="; }; }); # flask 2.x requires werkzeug 2.x werkzeug = super.werkzeug.overridePythonAttrs (oldAttrs: rec { version = "2.3.8"; src = fetchPypi { inherit (oldAttrs) pname; inherit version; hash = "sha256-VUslfHS763oNJUFgpPj/4YUkP1KlIDUGC3Ycpi2XfwM="; }; # Fixes a test failure with Pytest 8 patches = (oldAttrs.patches or [ ]) ++ [ (fetchpatch { url = "https://github.com/pallets/werkzeug/commit/4e5bdca7f8227d10cae828f8064fb98190ace4aa.patch"; hash = "sha256-83doVvfdpymlAB0EbfrHmuoKE5B2LJbFq+AY2xGpnl4="; }) ]; nativeCheckInputs = oldAttrs.nativeCheckInputs or [ ] ++ [ self.pytest-xprocess ]; }); # sourcehut is not (yet) compatible with factory-boy 3.x factory-boy = super.factory-boy.overridePythonAttrs (oldAttrs: rec { version = "2.12.0"; src = fetchPypi { pname = "factory_boy"; inherit version; hash = "sha256-+vSNYIoXNfDQo8nL9TbWT5EytUfa57pFLE2Zp56Eo3A="; }; nativeCheckInputs = (with super; [ django mongoengine pytestCheckHook ]) ++ (with self; [ sqlalchemy flask flask-sqlalchemy ]); postPatch = ""; }); }; }; in Loading