Unverified Commit b4e5418d authored by natsukium's avatar natsukium
Browse files

python312Packages.flask-versioned: refactor

parent b019a951
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line
@@ -2,26 +2,37 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  flask,
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage {
  pname = "flask-versioned";
  version = "0.9.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pilt";
    repo = "flask-versioned";
    rev = "38046fb53a09060de437c90a5f7370a6b94ffc31"; # no tags
    sha256 = "1wim9hvx7lxzfg35c0nc7p34j4vw9mzisgijlz4ibgykah4g1y37";
    hash = "sha256-Z/jwCFTTvxXJpzI+HX9NfBNJxj3MAlbGc7/T0zdMNfI=";
  };

  propagatedBuildInputs = [ flask ];
  build-system = [ setuptools ];

  meta = with lib; {
  dependencies = [ flask ];

  pythonImportsCheck = [ "flaskext.versioned" ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonNamespaces = [ "flaskext" ];

  meta = {
    description = "Flask plugin to rewrite file paths to add version info";
    homepage = "https://github.com/pilt/flask-versioned";
    license = licenses.bsd3;
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}