diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2021-05-19 17:47:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 17:47:35 +0200 |
commit | f7ed00be13395c4f66840f717db9db5b2e0814f2 (patch) | |
tree | 24897a5c2f95c18706f0ec17830c9cc404fd0108 /pkgs | |
parent | ff2f08080e0e3f069b80c31e6881ef6bc1712372 (diff) | |
parent | 6996896b4882c0dde1b42d83182f7a2ac9a35edf (diff) |
Merge pull request #123689 from prusnak/bcal
bcal: cleanup package, enable aarch64-darwin build
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/science/math/bcal/default.nix | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/pkgs/applications/science/math/bcal/default.nix b/pkgs/applications/science/math/bcal/default.nix index 8cbf90a7187c4..1494b53248726 100644 --- a/pkgs/applications/science/math/bcal/default.nix +++ b/pkgs/applications/science/math/bcal/default.nix @@ -1,6 +1,10 @@ -{ lib, stdenv, fetchFromGitHub, python3Packages, readline, bc }: - -with lib; +{ lib +, stdenv +, fetchFromGitHub +, readline +, bc +, python3Packages +}: stdenv.mkDerivation rec { pname = "bcal"; @@ -13,23 +17,21 @@ stdenv.mkDerivation rec { sha256 = "4vR5rcbNkoEdSRNoMH9qMHP3iWFxejkVfXNiYfwbo/A="; }; - nativeBuildInputs = [ python3Packages.pytest ]; - buildInputs = [ readline ]; + installFlags = [ "PREFIX=$(out)" ]; + doCheck = true; - checkInputs = [ bc ]; - checkPhase = '' - python3 -m pytest test.py - ''; - installFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; + checkInputs = [ bc python3Packages.pytestCheckHook ]; + + pytestFlagsArray = [ "test.py" ]; - meta = { + meta = with lib; { description = "Storage conversion and expression calculator"; homepage = "https://github.com/jarun/bcal"; license = licenses.gpl3Only; - platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ]; + platforms = platforms.unix; maintainers = with maintainers; [ jfrankenau ]; }; } |