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

Merge pull request #225384 from fabaff/et_xmlfile-bump

python310Packages.et_xmlfile: 1.0.1 -> 1.1
parents 1ac69f69 f6ad3df1
Loading
Loading
Loading
Loading
+23 −16
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitLab
, lxml
, pytest
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  version = "1.0.1";
  pname = "et_xmlfile";
  pname = "et-xmlfile";
  version = "1.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256="0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1";
  disabled = pythonOlder "3.7";

  src = fetchFromGitLab {
    domain = "foss.heptapod.net";
    owner = "openpyxl";
    repo = "et_xmlfile";
    rev = version;
    hash = "sha256-MJimcnYKujOL3FedGreNpuw1Jpg48ataDmFd1qwTS5A=";
  };

  nativeCheckInputs = [ lxml pytest ];
  checkPhase = ''
    py.test $out
  '';
  nativeCheckInputs = [
    lxml
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "et_xmlfile"
  ];

  meta = with lib; {
    description = "An implementation of lxml.xmlfile for the standard library";
@@ -28,13 +39,9 @@ buildPythonPackage rec {
      allowing code to be developed that will work with both
      libraries. It was developed initially for the openpyxl project
      but is now a standalone module.

      The code was written by Elias Rabel as part of the Python
      Düsseldorf openpyxl sprint in September 2014.
    '';
    homepage = "https://pypi.python.org/pypi/et_xmlfile";
    homepage = "https://foss.heptapod.net/openpyxl/et_xmlfile";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };

}