Unverified Commit 676b249c authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

python3Packages.iso4217: avoid mis-using $pname

It makes no sense to depend those folders on pname - they are part of
the source code, not our convention, after all.

Also this avoids using bash eval behavior in pytestFlagsArray.
parent f363956c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -40,15 +40,15 @@ buildPythonPackage rec {
    # The table is already downloaded
    export ISO4217_DOWNLOAD=0
    # Copy the table file to satifiy the build process
    cp -r ${table} $pname/table.xml
    cp -r ${table} iso4217/table.xml
  '';

  postInstall = ''
    # Copy the table file
    cp -r ${table} $out/${python.sitePackages}/$pname/table.xml
    cp -r ${table} $out/${python.sitePackages}/iso4217/table.xml
  '';

  pytestFlagsArray = [ "$pname/test.py" ];
  pytestFlagsArray = [ "iso4217/test.py" ];

  pythonImportsCheck = [ "iso4217" ];