Unverified Commit e24a3d18 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #313332 from fabaff/stickytape-refactor

python312Packages.stickytape: refactor
parents 33e24477 0fc78b93
Loading
Loading
Loading
Loading
+16 −11
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "stickytape";
  version = "0.2.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "mwilliamson";
    repo = pname;
    rev = version;
    repo = "stickytape";
    rev = "refs/tags/${version}";
    hash = "sha256-KOZN9oxPb91l8QVU07I49UMNXqox8j+oekA1fMtj6l8=";
  };

  build-system = [ setuptools ];

  # Tests have additional requirements
  doCheck = false;

  pythonImportsCheck = [
    "stickytape"
  ];
  pythonImportsCheck = [ "stickytape" ];

  meta = with lib; {
    description = "Python module to convert Python packages into a single script";
    mainProgram = "stickytape";
    homepage = "https://github.com/mwilliamson/stickytape";
    license = with licenses; [ bsd2 ];
    license = licenses.bsd2;
    maintainers = with maintainers; [ fab ];
    mainProgram = "stickytape";
  };
}