Unverified Commit dc834704 authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.escapism: fix build, enable tests, cleanup (#501757)

parents 2dc14b8a b1dc13c3
Loading
Loading
Loading
Loading
+16 −7
Original line number Diff line number Diff line
@@ -2,20 +2,29 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  setuptools-scm,
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "escapism";
  version = "1.1.0";
  format = "setuptools";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-rdEw5IqFuxquo+dPsDH1AzxwVa7bOaMmX5I9X0DD+XQ=";
    inherit (finalAttrs) pname version;
    hash = "sha256-rdEw5IqFuxquo+dPsDH1AzxwVa7bOaMmX5I9X0DD+XQ=";
  };

  # No tests distributed
  doCheck = false;
  build-system = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Simple, generic API for escaping strings";
@@ -23,4 +32,4 @@ buildPythonPackage rec {
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ bzizou ];
  };
}
})