Skip to content

Commit

Permalink
python3Packages.simplesat: init at 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GenericNerdyUsername committed May 13, 2023
1 parent a2244a3 commit c46c30c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/development/python-modules/simplesat/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{ buildPythonPackage
, fetchFromGitHub
, writeText
, lib
, attrs
, six
, okonomiyaki
}:

let
version = "0.8.2";

versionFile = writeText "simplesat_ver" ''
version = '${version}'
full_version = '${version}'
git_revision = '0000000000000000000000000000000000000000'
is_released = True
msi_version = '${version}.000'
version_info = (${lib.versions.major version}, ${lib.versions.minor version}, ${lib.versions.patch version}, 'final', 0)
'';

in buildPythonPackage rec {
pname = "simplesat";
inherit version;

propagatedBuildInputs = [ attrs six okonomiyaki ];

src = fetchFromGitHub {
owner = "enthought";
repo = "sat-solver";
rev = "v${version}";
hash = "sha256-6BQn1W2JGrMmNqgxi+sXx06XzNMcvwqYGMkpD0SSpT8=";
};

preConfigure = ''
cp ${versionFile} simplesat/_version.py
'';
dontUseSetuptoolsCheck = true;

pythonImportsCheck = [ "simplesat" ];

meta = with lib; {
homepage = "https://github.com/enthought/sat-solver";
description = "Prototype for SAT-based dependency handling";
maintainers = with maintainers; [ genericnerdyusername ];
license = licenses.bsd3;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11039,6 +11039,8 @@ self: super: with self; {

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

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

simple-di = callPackage ../development/python-modules/simple-di { };

simple-rest-client = callPackage ../development/python-modules/simple-rest-client { };
Expand Down

0 comments on commit c46c30c

Please sign in to comment.