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

Merge pull request #169704 from fabaff/net2grid-fix

python3Packages.net2grid: remove
parents 567bf6ce 26d74675
Loading
Loading
Loading
Loading
+0 −58
Original line number Diff line number Diff line
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
}:

buildPythonPackage rec {
  pname = "net2grid";
  version = "4.0.0";
  format = "pyproject";

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "klaasnicolaas";
    repo = "python-net2grid";
    rev = "v${version}";
    hash = "sha256-Ihs8qUx50tAUcRBsVArRhzoLcQUi1vbYh8sPyK75AEk=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    aiohttp
    yarl
  ];

  checkInputs = [
    aresponses
    pytest-asyncio
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace '"0.0.0"' '"${version}"' \
      --replace 'addopts = "--cov"' ""
  '';

  pythonImportsCheck = [
    "net2grid"
  ];

  meta = with lib; {
    description = "Module for interacting with NET2GRID devices";
    homepage = "https://github.com/klaasnicolaas/python-net2grid";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ mapAliases ({
  lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
  Markups = markups; # added 2022-02-14
  MechanicalSoup = mechanicalsoup; # added 2021-06-01
  net2grid = gridnet; # add 2022-04-22
  nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16
  pam = python-pam; # added 2020-09-07.
  PasteDeploy = pastedeploy; # added 2021-10-07
+0 −2
Original line number Diff line number Diff line
@@ -5537,8 +5537,6 @@ in {

  nestedtext = callPackage ../development/python-modules/nestedtext { };

  net2grid = callPackage ../development/python-modules/net2grid { };

  netaddr = callPackage ../development/python-modules/netaddr { };

  netcdf4 = callPackage ../development/python-modules/netcdf4 { };